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

Add validation check for Topic retention.ms property

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.0
    • Component/s: None
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: