Skip to content

Commit

Permalink
Fix newLookup TooManyRequestsException message (#16594)
Browse files Browse the repository at this point in the history
(cherry picked from commit 595bb55)
  • Loading branch information
AnonHxy authored and codelipenghui committed Jul 25, 2022
1 parent 0ab33bf commit 98d1cc9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ public CompletableFuture<LookupDataResult> newLookup(ByteBuf request, long reque
future.completeExceptionally(new PulsarClientException.TooManyRequestsException(String.format(
"Requests number out of config: There are {%s} lookup requests outstanding and {%s} requests"
+ " pending.",
pendingLookupRequestSemaphore.availablePermits(),
pendingLookupRequestSemaphore.getQueueLength(),
waitingLookupRequests.size())));
}
}
Expand Down

0 comments on commit 98d1cc9

Please sign in to comment.