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

Add validation check for Topic retention.ms property

    XMLWordPrintableJSON

Details

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

    Description

      Using AdminClient#alterConfigs, topic retention.ms property can be assigned to a value less than -1. This leads to inconsistency while describing the topic configuration. We should not allow values less than -1. In server.properties, if log.retention.ms configured to a value less than zero, it's set as -1.

      This doesn't create any issue in log segment deletion, as the condition for infinite log retention checks for value less than zero. To maintain consistency, we should add the validation check.

      Attachments

        Issue Links

          Activity

            People

              ckamal Kamal Chandraprakash
              ckamal Kamal Chandraprakash
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: