Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-4296

LogCleaner CleanerStats swap logic seems incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.10.2.0
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              hachikuji Jason Gustafson
              hachikuji Jason Gustafson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: