oslo.messaging/oslo_messaging/tests
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 Update hacking version 2019-01-21 19:45:42 -05:00
functional Cancel consumer if queue down 2021-04-15 13:59:07 +00:00
notify Remove the deprecated ZeroMQ driver 2018-08-28 16:00:50 -04:00
rpc [rabbitmq] Implement active call monitoring 2018-05-09 10:08:37 -07:00
__init__.py Test:Use unittest.mock on Python 3 2017-02-08 19:15:17 +08:00
test_config_opts_proxy.py Remove deprecated rabbit options 2018-09-10 15:11:19 -06:00
test_exception_serialization.py Remove unnecessary setUp function in testcase 2017-08-18 01:22:26 +00:00
test_expected_exceptions.py Move files out of the namespace package 2015-01-12 12:50:41 -05:00
test_fixture.py Remove rpc_backend and ConfFixture.transport_driver 2018-09-13 15:01:27 -06:00
test_opts.py Remove rpc_backend and ConfFixture.transport_driver 2018-09-13 15:01:27 -06:00
test_target.py Move files out of the namespace package 2015-01-12 12:50:41 -05:00
test_transport.py Fix oslo.messaging default transport 2018-10-05 15:21:45 +02:00
test_urls.py Remove rpc_backend and ConfFixture.transport_driver 2018-09-13 15:01:27 -06:00
test_utils.py Add restart() method to DecayingTimer 2018-03-07 10:24:52 -08:00
utils.py Add ConfFixture.transport_url 2018-06-01 11:45:12 +10:00