[ 
https://issues.apache.org/jira/browse/KAFKA-13718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17539164#comment-17539164
 ] 

Luke Chen commented on KAFKA-13718:
-----------------------------------

Thanks for the answers, [~dengziming] !

[~rjoerger] , as Ziming said, we are unsure the root cause of this issue. Maybe 
you can investigate it first, and see if you find anything. My thought is that, 
since we didn't provide any new configs during create topics:

_> bin/kafka-topics.sh --create --topic quickstart-events --bootstrap-server 
localhost:9092_

 

So, the describe results should not contain any topic related configs, to avoid 
confusing users. As you mentioned, we never document anything about what the 
"configs" field should display, but from the code
{code:java}
val configsAsString = config.entries.asScala.filter(!_.isDefault).map { ce => 
s"${ce.name}=${ce.value}" }.mkString(","){code}
We can know it is trying to filter out anything "not default".

 

So, maybe we should first know why only the "segment.bytes=1073741824" showed 
here.

Thanks for your help.

> 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
>            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)

Reply via email to