[ https://issues.apache.org/jira/browse/KAFKA-13718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17544086#comment-17544086 ]
Jason Gustafson commented on KAFKA-13718: ----------------------------------------- [~showuon] I think the reason `segment.bytes` shows up is that we have it defined in the default `server.properties`: [https://github.com/apache/kafka/blob/trunk/config/server.properties#L112.] Technically, the static configuration is overriding the default value (even though the overridden value is the same as the default). If you take it out of `server.properties`, then it is no longer displayed. I guess I'd call this correct, if perhaps slightly surprising, behavior. Perhaps we could "fix" it by commenting out the default in `server.properties`? > kafka-topics describe topic with default config will show `segment.bytes` > overridden config > -------------------------------------------------------------------------------------------- > > Key: KAFKA-13718 > URL: https://issues.apache.org/jira/browse/KAFKA-13718 > Project: Kafka > Issue Type: Bug > Components: tools > Affects Versions: 3.1.0, 2.8.1, 3.0.0 > Reporter: Luke Chen > Assignee: Richard Joerger > Priority: Major > Labels: newbie, newbie++ > > Following the quickstart guide[1], when describing the topic just created > with default config, I found there's a overridden config shown: > _> bin/kafka-topics.sh --describe --topic quickstart-events > --bootstrap-server localhost:9092_ > _Topic: quickstart-events TopicId: 06zRrzDCRceR9zWAf_BUWQ > PartitionCount: 1 ReplicationFactor: 1 *Configs: > segment.bytes=1073741824*_ > _Topic: quickstart-events Partition: 0 Leader: 0 Replicas: 0 > Isr: 0_ > > This config result should be empty as in Kafka quick start page. Although the > config value is what we expected (default 1GB value), this info display still > confuse users. > > Note: I checked the 2.8.1 build, this issue also happened. > > [1]: [https://kafka.apache.org/quickstart] -- This message was sent by Atlassian Jira (v8.20.7#820007)