oslo.messaging/oslo_messaging
shenjiatong b2acc6663f 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
Depends-On: https://review.opendev.org/#/c/747892/
(cherry picked from commit 196fa877a9)
(cherry picked from commit 0a432c7fb1)
(cherry picked from commit 5de11fa752)
2021-04-15 13:59:07 +00:00
..
_drivers Cancel consumer if queue down 2021-04-15 13:59:07 +00:00
hacking Update hacking version 2019-01-21 19:45:42 -05:00
notify Remove transport aliases support 2018-07-05 15:58:05 +10:00
rpc Update hacking version 2019-01-21 19:45:42 -05:00
tests Cancel consumer if queue down 2021-04-15 13:59:07 +00:00
__init__.py Remove deprecated localcontext 2016-05-18 09:28:15 +02:00
_i18n.py Update URLs in documents according to document migration 2017-07-12 22:54:02 +08:00
_utils.py Use method fetch_current_thread_functor from oslo.utils 2016-09-24 15:22:44 +08:00
conffixture.py Update hacking version 2019-01-21 19:45:42 -05:00
dispatcher.py Remove useless logging import statements 2016-11-08 10:11:13 +08:00
exceptions.py Update hacking version 2019-01-21 19:45:42 -05:00
opts.py Update hacking version 2019-01-21 19:45:42 -05:00
serializer.py Update hacking version 2019-01-21 19:45:42 -05:00
server.py Update hacking version 2019-01-21 19:45:42 -05:00
target.py Fixups to the inline documentation 2016-09-12 09:49:00 -04:00
transport.py Update hacking version 2019-01-21 19:45:42 -05:00
version.py pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz) 2017-02-06 12:49:23 -05:00