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

Richard Joerger commented on KAFKA-13718:
-----------------------------------------

I'd love to help out on this particular Jira. I'm new to the project so I 
apologize for any silly questions. It seems that we as a community need to 
discuss what the output of the kafka-topics tooling should look like. When 
we're looking at the documentation, I don't see any documentation explicitly 
stating that the kafka-topics output will only show the non-default 
configurations. As I understand it this is something that is just "known" among 
the community but isn't necessarily explicit. This leads me to a few points of 
question. 

1) Do we want to open a new issue to update the documentation for kafka-topics 
to make that explicit (or am I mistaken on this?)

2) Looking at the documentation for segment.bytes, this (1073741824) is the 
default value. When I was investigating the code base, it seems to be the 
default value in there as well. I'm not sure how much benefit there would be to 
including this configuration vs. not including this configuration. 

3) I know this isn't an API change but is still user facing, would this require 
a KIP to change?

4) Where in the code base does this value reside? In my digging, it seems to 
reside in kafkaConfig.scala:112 but that's 1* 1024 * 1024 *1024 = 1073741824 so 
perhaps there is an issue of comparison? I'd love to tackle this but need some 
guidance if at all possible. 

Thanks

> 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