[
https://issues.apache.org/jira/browse/KAFKA-13899?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jason Gustafson resolved KAFKA-13899.
-------------------------------------
Fix Version/s: 3.2.1
Resolution: Fixed
> Inconsistent error codes returned from AlterConfig APIs
> -------------------------------------------------------
>
> Key: KAFKA-13899
> URL: https://issues.apache.org/jira/browse/KAFKA-13899
> Project: Kafka
> Issue Type: Bug
> Reporter: Jason Gustafson
> Assignee: Jason Gustafson
> Priority: Major
> Fix For: 3.2.1
>
>
> In the AlterConfigs/IncrementalAlterConfigs zk handler, we return
> INVALID_REQUEST and INVALID_CONFIG inconsistently. The problem is in
> `LogConfig.validate`. We may either return `ConfigException` or
> `InvalidConfigException`. When the first of these is thrown, we catch it and
> convert to INVALID_REQUEST. It seems more consistent to convert to
> INVALID_CONFIG.
> Note that the kraft implementation returns INVALID_CONFIG consistently.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)