-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
False
-
None
-
False
-
-
-
-
-
Important
When configuring bidirectional address federation between brokers:
<broker-connections> <amqp-connection uri="tcp://node1.test.redhat.com:61616" name="federation-node1" user="admin" password="admin"> <federation> <local-address-policy name="node4-address-policy" max-hops="1" auto-delete="true" auto-delete-delay="1000" auto-delete-message-count="-1"> <include address-match="#"/> </local-address-policy> <remote-address-policy name="node1-address-policy" max-hops="1" auto-delete="true" auto-delete-delay="1000" auto-delete-message-count="-1"> <include address-match="#"/> </remote-address-policy> <local-queue-policy name="node4-queue-policy" include-federated="false"> <include queue-match="#" address-match="#"/> </local-queue-policy> </federation> </amqp-connection> </broker-connections>
<address-setting match="#"> <dead-letter-address>DLQ</dead-letter-address> <expiry-address>ExpiryQueue</expiry-address> <redelivery-delay>0</redelivery-delay> <max-size-bytes>-1</max-size-bytes> <max-size-messages>-1</max-size-messages> <page-size-bytes>10M</page-size-bytes> <max-read-page-messages>-1</max-read-page-messages> <max-read-page-bytes>20M</max-read-page-bytes> <message-counter-history-day-limit>10</message-counter-history-day-limit> <address-full-policy>PAGE</address-full-policy> <auto-create-queues>true</auto-create-queues> <auto-create-addresses>true</auto-create-addresses> <auto-delete-queues>true</auto-delete-queues> <auto-delete-queues-delay>1000</auto-delete-queues-delay> <auto-delete-queues-message-count>-1</auto-delete-queues-message-count> <auto-delete-addresses>true</auto-delete-addresses> <auto-delete-addresses-delay>1000</auto-delete-addresses-delay> </address-setting>
If a producer attaches to the upstream broker with no consumers present on the downstream broker and produces messages, they are not pushed across the federation bridge to the downstream broker.
If a consumer connects to the downstream broker, message flow is observed across the bridge, as expected, but..
When the consumers disconnect, the addresses are not cleaned up on the target broker and federation-related queues remain under the addresses. If messages are again sent to the upstream broker, they continue to flow across the federation connector and are only discarded on the target broker after receipt.