You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Jason Gustafson (Jira)" <ji...@apache.org> on 2022/05/13 16:41:00 UTC

[jira] [Created] (KAFKA-13899) Inconsistent error codes returned from AlterConfig APIs

Jason Gustafson created KAFKA-13899:
---------------------------------------

             Summary: 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


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)