jack2012aa commented on code in PR #20461:
URL: https://github.com/apache/kafka/pull/20461#discussion_r2328869514
##########
clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:
##########
@@ -3108,34 +3109,52 @@ public DescribeLogDirsRequest.Builder createRequest(int
timeoutMs) {
@Override
public void handleResponse(AbstractResponse abstractResponse) {
DescribeLogDirsResponse response =
(DescribeLogDirsResponse) abstractResponse;
Review Comment:
Sorry, I didn't realize that CLUSTER_AUTHORIZATION_FAILED happens in the
response data.
I saw that KafkaAdminClient#describeLogDirs finds the error by testing
whether the descriptions map is empty, but not checks the error code directly.
Should I also handle the error in this way?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]