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)

Reply via email to