Christopher L. Shannon created AMQ-8349:
-------------------------------------------
Summary: Virtual destination consumer advisory messages are
inadvertently replayed to all existing advisory consumers
Key: AMQ-8349
URL: https://issues.apache.org/jira/browse/AMQ-8349
Project: ActiveMQ
Issue Type: Bug
Components: Broker, Network of Brokers
Affects Versions: 5.16.2
Reporter: Christopher L. Shannon
Assignee: Christopher L. Shannon
Fix For: 5.17.0, 5.16.3
In order to support AMQ-6027 new Virtual destination consumer advisories were
created so that demand could be dynamically created due to composite
destination creation across a bridge.
When setting up a broker with several bridges I noticed that the virtual
destination consumer advisory messages sent were quite high. I dug into it and
it turns out that the issue was that on replay of the advisories when a bridge
connected the messages are being inadvertently sent to all the existing
advisory consumers again and not just the new consumer.
What should happen is when a new bridge connects it will create a consumer on
the virtual destination consumer topic and any advisories that were previously
sent should be sent to ONLY that consumer. Existing consumers (usually bridge
consumers) already received them so there's no reason to send them again as it
causes a ton of extra traffic.
This is how things work already for existing replay of other advisories but was
simply missed when adding this feature and is a 1 line fix.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)