[ https://issues.apache.org/jira/browse/KAFKA-4092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ismael Juma updated KAFKA-4092: ------------------------------- 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. was: 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). > retention.bytes should not be allowed to be less than segment.bytes > ------------------------------------------------------------------- > > Key: KAFKA-4092 > URL: https://issues.apache.org/jira/browse/KAFKA-4092 > Project: Kafka > Issue Type: Improvement > Components: log > Reporter: Dustin Cote > Assignee: Dustin Cote > Priority: Minor > > 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. -- This message was sent by Atlassian JIRA (v6.3.15#6346)