You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Mickael Maison (Jira)" <ji...@apache.org> on 2022/04/14 10:01:00 UTC
[jira] [Resolved] (KAFKA-12613) Inconsistencies between Kafka Config and Log Config
[ https://issues.apache.org/jira/browse/KAFKA-12613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mickael Maison resolved KAFKA-12613.
------------------------------------
Fix Version/s: 3.3.0
Resolution: Fixed
> Inconsistencies between Kafka Config and Log Config
> ---------------------------------------------------
>
> Key: KAFKA-12613
> URL: https://issues.apache.org/jira/browse/KAFKA-12613
> Project: Kafka
> Issue Type: Bug
> Components: core
> Reporter: Dongjin Lee
> Assignee: Dongjin Lee
> Priority: Major
> Fix For: 3.3.0
>
> Attachments: 20210404-161832.png
>
>
> I found this problem while investigating KAFKA-8926.
> Some broker-wide configurations (defined in KafkaConfig) are mapped with log-wide configurations (defined in LogConfig), providing a default value. You can find the complete mapping list in `LogConfig.TopicConfigSynonyms`.
> The problem is, *some configuration properties' validation is different between KafkaConfig and LogConfig*:
> !20210404-161832.png!
> These inconsistencies cause some problems with the dynamic configuration feature. When a user dynamically configures the broker configuration with `AdminClient#alterConfigs`, the submitted config is validated with KafkaConfig, which lacks some validation logic - as a result, they bypasses the correct validation.
> For example, a user can set `log.cleaner.min.cleanable.ratio` to -0.5 - which is obviously prohibited in LogConfig.
> * I could not reproduce the situation KAFKA-8926 describes, but fixing this problem also resolves KAFKA-8926.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)