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

Fix documentation for retention.ms property and update documentation for LogConfig.scala class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • None
    • log

    Description

      Log retention settings can be set it in broker and some properties can be overriden at topic level.

      Property Default Server Default property Description
      retention.ms 7 days log.retention.minutes This configuration controls the maximum time we will retain a log before we will discard old log segments to free up space if we are using the "delete" retention policy. This represents an SLA on how soon consumers must read their data.

      But retention.ms is in milli seconds not in minutes. So corresponding Server Default property should be log.retention.ms instead of log.retention.minutes.

      It would be better if we mention the if the time age is in millis/minutes/hours in the documentation page and documenting in code as well (Right now, it is saying age in the code. We should specify the *age in time granularity).

      Attachments

        Issue Links

          Activity

            People

              jkreps Jay Kreps
              raju.bairishetti Raju Bairishetti
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: