-
Bug
-
Resolution: Obsolete
-
Major
-
None
-
A-MQ 7.0.0.ER15, A-MQ 7.0.0.ER16
-
None
-
None
-
Documentation (Ref Guide, User Guide, etc.)
-
-
Documented as Known Issue
Updated bug reproducer (same as my comment below, but better in description):
After some talk with mtaylor1@redhat.com we got into conclusion, that there is a bug associated with address named same as queue bound to different address (different name).
Consumers incorrectly receive messages sent to an address, different to what the consumer subscribed to. This happens when another address has been configured with a queue that has the same name as the consumer address.
Address | Queue foo bar
Sender sends msgs to address foo, messages end up in "bar". OK
Address | Queue foo bar (msgs)
Receiver receives from address "bar" (not existing at this moment), the address is created, but messages are consumed from "foo::bar" queue. This behavior should not be allowed.
Address | Queue foo bar (msgs consumed) bar ---^^
1) Update broker.xml
<address name="test_queue_address"> <anycast> <queue name="test_queue_address_qname"/> </anycast> </address>
2) Send a message to the address
Send message to address - OK
java -jar /var/dtests/node_data/clients/aac1.jar sender --log-msgs dict --broker <host-ip>:5672 --conn-username admin --conn-password admin --address "test_queue_address" --count 1
3) Receive message from queue - NOK
Message is received, but address is created with same name by this receiver call in case auto-create is turned on.
java -jar /var/dtests/node_data/clients/aac1.jar receiver --log-msgs dict --broker <host-ip>:5672 --conn-username admin --conn-password admin --address "test_queue_address_qname" --count 1
- is related to
-
ENTMQBR-115 Creating two addresses with the same name prints no warning
- Closed
- relates to
-
AMQDOC-3029 Customer feedback - Addressing - a queue under an address is global to Broker
- Resolved
-
ENTMQBR-24 Send/Receive doesn't work if queue and address name aren't the same
- Closed