shenjiatong 196fa877a9 Cancel consumer if queue down
Previously, we have switched to use default exchanges
to avoid excessive amounts of exchange not found messages.
But it does not actually solve the problem because
reply_* queue is already gone and agent will not receive callbacks.

after some debugging, I found under some circumstances
seems rabbitmq consumer does not receive basic cancel
signal when queue is already gone. This might due to
rabbitmq try to restart consumer when queue is down
(for example when split brain). In such cases,
it might be better to fail early.

by reading the code, seems like x-cancel-on-ha-failover
is not dedicated to mirror queues only, https://github.com/rabbitmq/rabbitmq-server/blob/master/src/rabbit_channel.erl#L1894,
https://github.com/rabbitmq/rabbitmq-server/blob/master/src/rabbit_channel.erl#L1926.

By failing early, in my own test setup,
I could solve a certain case of exchange not found problem.

Change-Id: I2ae53340783e4044dab58035bc0992dc08145b53
Related-bug: #1789177
2020-07-31 06:05:16 +08:00
2020-06-04 15:27:58 +08:00
2015-09-24 18:11:22 +08:00
2019-12-02 07:54:34 -05:00
2020-07-01 14:40:24 +01:00
2019-04-19 19:31:51 +00:00
2018-07-04 08:33:49 +07:00
2020-07-01 14:40:24 +01:00
2014-06-05 22:48:44 +02:00
2020-07-01 14:40:24 +01:00
2020-05-11 10:21:58 +02:00
2020-04-24 08:23:12 -05:00
2020-02-10 18:33:15 +01:00
2020-05-11 10:21:58 +02:00

Team and repository tags

image

Oslo Messaging Library

Latest Version

Downloads

The Oslo messaging API supports RPC and notifications over a number of different messaging transports.

Description
OpenStack library for messaging
Readme 36 MiB
Languages
Python 99.8%
Shell 0.2%