Notification - when no listenere without pool exist the notification queue is not consumed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.messaging |
Fix Released
|
Undecided
|
Ken Giusti |
Bug Description
The oslo messaging documentation[1] how pools can be used with notifications to make multiple subgroups of listeners recive copies of the notification.
When all listeners use a pool, there are no listeners consuming the notification queue that notifiers publish messages too. This queue will continue to grow, as can bee seen below queue listing:
rabbitmqctl list_queues name messages consumers auto_delete
Listing queues ...
pool-listener 0 1 false
test-topic.info 293 0 false
The atteched file contains a small reproducer.
notfier.py - Sends notifications
listener.py - A notification listener that does not use a pool
pool-listener.py - A notification listener using a pool
When running notfier.py and pool-listener.py only the test-topic.info queue have no consumers and continues to grow.
Some mechanism should clear the messages of the test-topic.info queue when all listeners are using one of more pools.
[1] https:/
Fix proposed to branch: master /review. openstack. org/642442
Review: https:/