Browse Source

MINOR: Include call name in TimeoutException (#8050)

Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>
pull/9248/head
Mickael Maison 4 years ago committed by GitHub
parent
commit
fd02c8f07f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java

2
clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java

@ -882,7 +882,7 @@ public class KafkaAdminClient extends AdminClient { @@ -882,7 +882,7 @@ public class KafkaAdminClient extends AdminClient {
Call call = iter.next();
int remainingMs = calcTimeoutMsRemainingAsInt(now, call.deadlineMs);
if (remainingMs < 0) {
call.fail(now, new TimeoutException(msg));
call.fail(now, new TimeoutException(msg + " Call: " + call.callName));
iter.remove();
numTimedOut++;
} else {

Loading…
Cancel
Save