You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/04/09 03:02:07 UTC

[GitHub] [pulsar] zjyingchang commented on a change in pull request #10163: Add Thread.currentThread.interrupt() after catching InterruptedException and document it in the javadoc

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



##########
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:
       
   Okay! I'll do it




-- 
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:
users@infra.apache.org