In the case queue was disapeared during reconnection process, "Queue not
found" exception may break consumption in other queues, thus rpc subsystem
may got stuck.
Added a new method _try_consume() to consume queue. If queue is not found,
this method reconnect queue (this supposes to re-create a lost queue),
and try consume it one more time.
Reviewed: https:/ /review. fuel-infra. org/10420 ci/fuel- 7.0/2015. 1.0
Submitter: Oleksii Zamiatin <email address hidden>
Branch: openstack-
Commit: 750fcc8f96761b5 12226d696271c9d 67db56240b
Author: Alexey Khivin <email address hidden>
Date: Thu Aug 13 17:55:01 2015
Improve "Queue not found" exception handling
In the case queue was disapeared during reconnection process, "Queue not
found" exception may break consumption in other queues, thus rpc subsystem
may got stuck.
Added a new method _try_consume() to consume queue. If queue is not found,
this method reconnect queue (this supposes to re-create a lost queue),
and try consume it one more time.
Also fixed a strange test in test_utils.py
Change-Id: I41ffe7aacbae1a c176e0063a20cdd 256cef69127
Closes-bug: #1465757
Closes-bug: #1463802
Closes-bug: #1415932