Skip to content

Fix Topic store/temp usage tracking#2178

Open
cshannon wants to merge 1 commit into
apache:mainfrom
cshannon:topic-usage-fix
Open

Fix Topic store/temp usage tracking#2178
cshannon wants to merge 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant