eolivelli commented on a change in pull request #10240:
URL: https://github.com/apache/pulsar/pull/10240#discussion_r619972470



##########
File path: 
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java
##########
@@ -414,6 +414,7 @@ public UnAckedMessageTracker getUnAckedMessageTracker() {
         CompletableFuture<Message<T>> result = 
cancellationHandler.createFuture();
         Message<T> message = null;
         try {
+            lock.writeLock().lock();

Review comment:
       Please move out of the try block




-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to