gaurav-narula opened a new pull request, #16704:
URL: https://github.com/apache/kafka/pull/16704

   In Zookeeper mode, the controller maintains an in-memory state of 
`topicsWithDeletionStarted` to decide if `OfflinePartitionsCount` metric must 
be incremented/decremented for a TopicPartition on its state transition.
   
   This in-memory state is however not maintained when a controller election 
happens in the midst of a topic deletion leading to false positives on the 
`OfflinePartitionsCount` metric.
   
   This change modifies `TopicDeletionManager::init` to populate 
`ControllerContext.topicsWithDeletionStarted` with 
`topicsIneligibleForDeletion` so that the new controller doesn't emit false 
positive metric.


-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to