Skip to content

Fix Topic store/temp usage tracking#2178

Merged
cshannon merged 1 commit into
apache:mainfrom
cshannon:topic-usage-fix
Jul 6, 2026
Merged

Fix Topic store/temp usage tracking#2178
cshannon merged 1 commit into
apache:mainfrom
cshannon:topic-usage-fix

Conversation

@cshannon

@cshannon cshannon commented Jul 2, 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.

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.
@cshannon cshannon requested a review from mattrpav July 2, 2026 19:48

@mattrpav mattrpav left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good fix!

@cshannon cshannon merged commit 3c54283 into apache:main Jul 6, 2026
10 checks passed
@cshannon cshannon deleted the topic-usage-fix branch July 6, 2026 12:47
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Apache ActiveMQ v6.3.0 Jul 6, 2026
cshannon added a commit that referenced this pull request Jul 6, 2026
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 added a commit that referenced this pull request Jul 6, 2026
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants