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/9335 ci/fuel- 5.1.1-updates/ 2014.1. 1
Submitter: Vitaly Sedelnik <email address hidden>
Branch: openstack-
Commit: 022c6c28dd73e7a 76270b76c4cbe89 5c9750e7cb
Author: Alex Khivin <email address hidden>
Date: Tue Jul 14 15:54:34 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.
Closes-bug: #1465757
Closes-bug: #1463802
Change-Id: I41ffe7aacbae1a c176e0063a20cdd 256cef69127