Jason Gustafson created KAFKA-4296:
--------------------------------------

             Summary: LogCleaner CleanerStats swap logic seems incorrect
                 Key: KAFKA-4296
                 URL: https://issues.apache.org/jira/browse/KAFKA-4296
             Project: Kafka
          Issue Type: Bug
            Reporter: Jason Gustafson
            Assignee: Jason Gustafson
             Fix For: 0.10.1.1


In LogCleaner, we keep track of two instances of the {{CleanerStats}} object in 
a tuple object. One instance is intended to keep track the stats for the last 
cycle while the other is for the current cycle. The idea is to swap them after 
each cleaning cycle, but the current logic does not actually mutate the 
existing tuple, which means that we always clear the same instance of 
{{CleanerStats}} after each cleaning.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to