Mickael Maison created KAFKA-13013:
--------------------------------------

             Summary: Avoid specific exception handling in AdminApiDriver
                 Key: KAFKA-13013
                 URL: https://issues.apache.org/jira/browse/KAFKA-13013
             Project: Kafka
          Issue Type: Improvement
          Components: admin
            Reporter: Mickael Maison


To enable downconverting requests when brokers don't support FindCoordinator 
v4, we added some logic in AdminApiDriver to handle 
NoBatchedFindCoordinatorsException. 

Ideally AdminApiDriver should not be aware of specific exceptions like this and 
instead delegate the handling to the corresponding strategy. 

Another option is to not rely on an Exception to identify the request version 
to use and use ApiVersions when creating the initial request. A good solution 
would work nicely with all types of clients (consumer, producer, admin).

More details in:
- https://github.com/apache/kafka/pull/10743#discussion_r659602262
- https://github.com/apache/kafka/pull/10743#discussion_r649872433



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to