linlinnn commented on a change in pull request #10163:
URL: https://github.com/apache/pulsar/pull/10163#discussion_r609652118



##########
File path: 
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java
##########
@@ -398,6 +398,7 @@ public UnAckedMessageTracker getUnAckedMessageTracker() {
             messageProcessed(message);
             return beforeConsume(message);
         } catch (InterruptedException e) {
+            Thread.currentThread().interrupt();
             stats.incrementNumReceiveFailed();
             throw PulsarClientException.unwrap(e);

Review comment:
       BTW, please add same above in the method 
internalReceive/internalBatchReceive if this is nessary




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