Skip to content

KAFKA-20351: metrics leak caused by reducing numRecoveryThreadsPerDataDir in runtime - #23528

Open
brandboat wants to merge 1 commit into
apache:trunkfrom
brandboat:KAFKA-20351
Open

brandboat wants to merge 1 commit into
apache:trunkfrom
brandboat:KAFKA-20351

Conversation

@brandboat

@brandboat brandboat commented Sep 20, 2026

Copy link
Copy Markdown
Member

Snapshot the recovery thread count for each log-loading cycle and use it
consistently when registering and removing recovery metrics. This
prevents remainingSegmentsToRecover gauges from leaking if the dynamic
recovery thread configuration shrinks while log recovery is in
progress.

@github-actions github-actions Bot added storage Pull requests that target the storage module small Small PRs labels Sep 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

small Small PRs storage Pull requests that target the storage module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant