Skip to content

[6.2.x] Fix Topic store/temp usage tracking (#2178)#2192

Merged
cshannon merged 1 commit into
apache:activemq-6.2.xfrom
cshannon:backport-2178-6.2.x
Jul 6, 2026
Merged

[6.2.x] Fix Topic store/temp usage tracking (#2178)#2192
cshannon merged 1 commit into
apache:activemq-6.2.xfrom
cshannon:backport-2178-6.2.x

Conversation

@cshannon

@cshannon cshannon commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

This fixes a bug that prevented broker usage limit updates from being applied to topics. Previousy topics did not call start() on the usage trackers for the store or temp store which means those trackers didn't get registered with the parent tracker. Registering with the parent is required in order to get notified of updates.

Queues already properly called start/stop to register and deregister the usage trackers so this commit just brings Topics in line with Queues and adds a test to verify the trackers now correctly register themselves with the broker's parent tracker and the limits are applied on updates. Lastly, the the test verifies the trackers are cleaned up correctly on destination deletion.

(cherry picked from commit 3c54283)

This fixes a bug that prevented broker usage limit updates from being
applied to topics. Previousy topics did not call start() on the usage
trackers for the store or temp store which means those trackers didn't
get registered with the parent tracker. Registering with the parent is
required in order to get notified of updates.

Queues already properly called start/stop to register and deregister the
usage trackers so this commit just brings Topics in line with Queues and
adds a test to verify the trackers now correctly register themselves
with the broker's parent tracker and the limits are applied on updates.
Lastly, the the test verifies the trackers are cleaned up correctly on
destination deletion.

(cherry picked from commit 3c54283)
@cshannon cshannon self-assigned this Jul 6, 2026
@cshannon cshannon merged commit 1ef7626 into apache:activemq-6.2.x Jul 6, 2026
3 of 4 checks passed
@cshannon cshannon deleted the backport-2178-6.2.x branch July 6, 2026 12:59
@github-project-automation github-project-automation Bot moved this from Todo to Done in Apache ActiveMQ v6.2.8 Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Development

Successfully merging this pull request may close these issues.

1 participant