yuriymalygin commented on PR #24299:
URL: https://github.com/apache/kafka/pull/24299#issuecomment-7108494996

   FYI, I opened #24352 as an alternative that avoids the live-replica problem 
described above. Instead of removing the gauges of the dropped log, it does not 
register them in the first place: `LogManager#loadLog` creates the log without 
registering the gauges and calls `newMetrics()` only in the branch that tracks 
the log. It includes tests for the stray, flagged-stray and `-delete` cases, 
plus tests that a live replica's gauges are left intact.
   
   Happy to discuss or merge the two approaches if you see a better way to 
combine them.
   


-- 
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]

Reply via email to