[
https://issues.apache.org/jira/browse/KAFKA-4788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15880268#comment-15880268
]
Ciprian Pascu commented on KAFKA-4788:
--------------------------------------
I am using command like this to create the topic:
bin/kafka-topics.sh --create --zookeeper x.x.x.x:2181 --replication-factor 1
--partitions 1 --topic test --config retention.bytes=2675303
The outcome is: Error while executing topic command : segment.bytes 1073741824
is not less than or equal to retention.bytes 2675303
[2017-02-23 13:08:04,797] ERROR
org.apache.kafka.common.errors.InvalidConfigurationException: segment.bytes
1073741824 is not less than or equal to retention.bytes 2675303
(kafka.admin.TopicCommand$)
This was working fine in version 0.10.1.1.
> Broker level configuration 'log.segment.bytes' not used when 'segment.bytes'
> not configured per topic.
> ------------------------------------------------------------------------------------------------------
>
> Key: KAFKA-4788
> URL: https://issues.apache.org/jira/browse/KAFKA-4788
> Project: Kafka
> Issue Type: Bug
> Components: log
> Affects Versions: 0.10.2.0
> Reporter: Ciprian Pascu
>
> In the previous version, if there was not topic level configuration
> 'segment.bytes', then the corresponding value from the broker configuration
> was used (for 'segment.bytes', this is the value configured for
> 'log.segment.bytes'); in 0.10.2.0, if the configuration at topic level is
> missing, then the value configured at broker level is not used, some kind of
> default value for that broker level configuration is used (for
> 'log.retention.bytes', this is 'val LogSegmentBytes = 1 * 1024 * 1024 *
> 1024').
> However, in the documentation it is said: 'A given server default config
> value only applies to a topic if it does not have an explicit topic config
> override.'; so, according to this, if there is, for example, no value
> configured for 'segment.bytes', then the value configured for
> 'log.segment.bytes' should be used.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)