imavishek commented on PR #23471: URL: https://github.com/apache/kafka/pull/23471#issuecomment-5680547765
Hi @kamalcph @showuon — could you take a look when you get a chance? This is the delete-path counterpart to KAFKA-16948: `updateRemoteDeleteLagWith` lacks the `!isCancelled()` guard that `recordLagStats` has, so after a leader→follower transition an in-flight expiration pass can re-register the delete-lag gauge right after `removeRemoteTopicPartitionMetrics` cleared it, leaving a phantom `RemoteDeleteLagSegments`/`RemoteDeleteLagBytes` that never drains. Small, low-risk change mirroring the existing copy-path guard, with a test that fails without it. Thanks! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
