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

Compacted topic segments that precede the log start offset are not cleaned up

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.0, 1.1.1, 2.0.0
    • Fix Version/s: 2.1.0
    • Component/s: log
    • Labels:
      None

      Description

      LogManager.cleanupLogs currently checks if a topic is compacted, and skips any deletion if it is. This means that if the log start offset increases, log segments that precede the start offset will never be deleted. The log cleanup logic should be improved to delete these segments even for compacted topics.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bob-barrett Bob Barrett
                Reporter:
                bob-barrett Bob Barrett
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: