Skip to content

Commit

Permalink
[fix][broker] Fix lookupRequestSemaphore leak when topic not found (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
pengxiangrui127 authored and Technoboy- committed Dec 4, 2023
1 parent c8e9640 commit 9fd3dc9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ protected CompletableFuture<LookupData> internalLookupTopicAsync(final TopicName
pulsar().getBrokerService().getLookupRequestSemaphore().release();
return result.getLookupData();
}
}).exceptionally(ex->{
pulsar().getBrokerService().getLookupRequestSemaphore().release();
throw FutureUtil.wrapToCompletionException(ex);
});
}).exceptionally(ex -> {
pulsar().getBrokerService().getLookupRequestSemaphore().release();
throw FutureUtil.wrapToCompletionException(ex);
});
}

Expand Down

0 comments on commit 9fd3dc9

Please sign in to comment.