You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Lincong Li (Jira)" <ji...@apache.org> on 2020/12/08 07:19:00 UTC
[jira] [Created] (KAFKA-10823) AdminOperationException has no error
code
Lincong Li created KAFKA-10823:
----------------------------------
Summary: AdminOperationException has no error code
Key: KAFKA-10823
URL: https://issues.apache.org/jira/browse/KAFKA-10823
Project: Kafka
Issue Type: Bug
Reporter: Lincong Li
The AdminOperationException is one kind of RuntimeException and the fact that it does not have error code prevents proper handling the exception.
For example, the AdminOperationException could be thrown when AdminZkClient.changeTopicConfig(...) method is invoked and the topic for which config change is requested does not exist. When the AdminOperationException is thrown, the caller of AdminZkClient.changeTopicConfig(...) can choose to catch it. But it cannot programmatically figure out what exactly is the cause of this exception. Hence nothing can be done safely.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)