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

Add debug log to retention cleanupLogs method to help troubleshoot issues

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Sometimes, there will be some log segments leftover without getting deleted as configured. One example is, the config is set to retention.ms = 7 days, but there are some log segments stay in storage for more than 7 days. In this case, it's difficult to troubleshoot if there is a bug in kafka or something wrong in the log segment (ex: max time is wrongly set).

      To help troubleshooting, we could add "trace level" or "debug level" logs when doing retentionSize/retentionMs/logStartOffset check for each log segment.

      Attachments

        Issue Links

          Activity

            People

              brandboat Kuan Po Tseng
              showuon Luke Chen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: