Skip to content

KAFKA-21124: Prevent stale remote log size and metadata metrics after leader-to-follower transitions - #23508

Open
JiayaoS wants to merge 1 commit into
apache:trunkfrom
JiayaoS:fix/KAFKA-21124
Open

JiayaoS wants to merge 1 commit into
apache:trunkfrom
JiayaoS:fix/KAFKA-21124

Conversation

@JiayaoS

@JiayaoS JiayaoS commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Prevent cancelled RLMExpirationTasks from recordingRemoteLogMetadataCount, RemoteLogSizeBytes, andRemoteLogSizeComputationTime after a leader-to-follower transition.

This change adds isCancelled() guards to the metric update paths andseparate regression tests for the affected metrics.

@github-actions github-actions Bot added triage PRs from the community storage Pull requests that target the storage module tiered-storage Related to the Tiered Storage feature small Small PRs labels Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-approved small Small PRs storage Pull requests that target the storage module tiered-storage Related to the Tiered Storage feature triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants