Skip to content

Commit

Permalink
[fix][client] Fix memory leak in ClientCnx.newLookup when there's Too…
Browse files Browse the repository at this point in the history
…ManyRequestsException (#23971)
  • Loading branch information
lhotari authored and merlimat committed Feb 12, 2025
1 parent 88fbeb2 commit 6a61464
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,7 @@ public CompletableFuture<LookupDataResult> newLookup(ByteBuf request, long reque
if (maxLookupRequestSemaphore.tryAcquire()) {
waitingLookupRequests.add(Pair.of(requestId, Pair.of(request, future)));
} else {
request.release();
if (log.isDebugEnabled()) {
log.debug("{} Failed to add lookup-request into waiting queue", requestId);
}
Expand Down

0 comments on commit 6a61464

Please sign in to comment.