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

retention.bytes should not be allowed to be less than segment.bytes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Reopened
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • log
    • None

    Description

      Right now retention.bytes can be as small as the user wants but it doesn't really get acted on for the active segment if retention.bytes is smaller than segment.bytes. We shouldn't allow retention.bytes to be less than segment.bytes and validate that at startup.

      Note that a PR for this was merged in 0.10.2.0, but reverted in the 0.10.2 branch (what will become 0.10.2.1) and trunk (see KAFKA-4788 for details). This is still worth doing, but the implementation needs to be a bit different: we should warn in TopicConfigHandler and we could potentially warn in KafkaConfig.

      Attachments

        Issue Links

          Activity

            People

              cotedm Dustin Cote
              cotedm Dustin Cote
              Ewen Cheslack-Postava Ewen Cheslack-Postava
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: