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

local log retention ms/bytes "-2" is not treated correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 3.9.0, 3.7.2, 3.8.1
    • None
    • None

    Description

      1. When the local.retention.ms/bytes is set to -2, we didn't replace it with the server-side retention.ms/bytes config, so the -2 local retention won't take effect.
      2. When setting retention.ms/bytes to -2, we can notice this log message:
      Deleting segment LogSegment(baseOffset=10045, size=1037087, lastModifiedTime=1724040653922, largestRecordTimestamp=1724040653835) due to local log retention size -2 breach. Local log size after deletion will be 13435280. (kafka.log.UnifiedLog) [kafka-scheduler-6]

      This is not helpful for users. We should replace -2 with real retention value when logging.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: