[
https://issues.apache.org/jira/browse/KAFKA-16211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17855584#comment-17855584
]
Gantigmaa Selenge commented on KAFKA-16211:
-------------------------------------------
This issue also causes a KRaft test to fail (e.g.
SaslSslAdminIntegrationTest.testCreateTopicsResponseMetadataAndConfig), if
brokers and controllers have set with different configuration values, because
they compare the configurations returned from create topic and describe topic
requests. As a workaround, brokers and controllers have the same configuration
[values|https://github.com/apache/kafka/pull/15175/files#diff-4ffa9190a8da4f602f2022e81c87bf041e79655a8ff2d5be673cd8238eced132R369]
set.
> Inconsistent config values in CreateTopicsResult and DescribeConfigsResult
> --------------------------------------------------------------------------
>
> Key: KAFKA-16211
> URL: https://issues.apache.org/jira/browse/KAFKA-16211
> Project: Kafka
> Issue Type: Bug
> Components: controller
> Reporter: Gantigmaa Selenge
> Assignee: Dung Ha
> Priority: Minor
>
> When creating a topic in KRaft cluster, a config value returned in
> CreateTopicsResult is different than what you get from describe topic
> configs, if the config was set in broker.properties or controller.properties
> or in both but with different values.
>
> For example, start a broker with `segment.bytes` set to 573741824 in the
> properties file and then create a topic, the CreateTopicsResult contains:
> ConfigEntry(name=segment.bytes, value=1073741824, source=DEFAULT_CONFIG,
> isSensitive=false, isReadOnly=false, synonyms=[], type=INT,
> documentation=null)
> because the controller was started without setting this config.
> However when you describe configurations for the same topic, the config value
> set by the broker is returned:
> Create topic configsConfigEntry(name=segment.bytes, value=573741824,
> source=STATIC_BROKER_CONFIG, isSensitive=false, isReadOnly=false,
> synonyms=[], type=null, documentation=null)
>
> Vice versa, if the controller is started with this config set to a different
> value, the create topic request returns the value set by the controller and
> then when you describe the config for the same topic, you get the value set
> by the broker. This makes it confusing to understand which value being is
> used.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)