[
https://issues.apache.org/jira/browse/ARTEMIS-3171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thorsten Meinl updated ARTEMIS-3171:
------------------------------------
Description:
Create two topics, "t.\*" and "t.123" (all using JMS). Then register two
consumers on both "t.\*" and "t.123" and send a message to "t.123". If the
consumers close both topics are correctly deleted from the broker.
However, if you do *not* register a consumer to the more specific topic "t.123"
its
address will stay in the broker even after the consumer for "t.\*" closes. The
address "t.\*" is correctly deleted, though. Reproducer it attached.
The problem seems to be that in the second case no "bindingRemovedTimestamp"
is set in the corresponding AddressInfo and hence it stays -1 and the address
is not eligible for auto-deletion.
was:
Create two topics, "t.*" and "t.123" (all using JMS). Then register two
consumers on both "t.*" and "t.123" and send a message to "t.123". If the
consumers close both topics are correctly deleted from the broker.
However, if you do *not* register a consumer to the more specific topic "t.123"
its
address will stay in the broker even after the consumer for "t.*" closes. The
address "t.*" is correctly deleted, though. Reproducer it attached.
The problem seems to be that in the second case no "bindingRemovedTimestamp"
is set in the corresponding AddressInfo and hence it stays -1 and the address
is not eligible for auto-deletion.
> Auto-created addresses not cleaned up when using topic hierachies
> -----------------------------------------------------------------
>
> Key: ARTEMIS-3171
> URL: https://issues.apache.org/jira/browse/ARTEMIS-3171
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Components: Broker
> Affects Versions: 2.16.0
> Reporter: Thorsten Meinl
> Priority: Major
> Attachments: Test.java
>
>
> Create two topics, "t.\*" and "t.123" (all using JMS). Then register two
> consumers on both "t.\*" and "t.123" and send a message to "t.123". If the
> consumers close both topics are correctly deleted from the broker.
> However, if you do *not* register a consumer to the more specific topic
> "t.123" its
> address will stay in the broker even after the consumer for "t.\*" closes.
> The address "t.\*" is correctly deleted, though. Reproducer it attached.
> The problem seems to be that in the second case no "bindingRemovedTimestamp"
> is set in the corresponding AddressInfo and hence it stays -1 and the address
> is not eligible for auto-deletion.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)