eolivelli opened a new issue #9921:
URL: https://github.com/apache/pulsar/issues/9921


   **Describe the bug**
   if you execute Consumer#receive() and thread is Interrupted the method 
returns a null value but it does not set Thread.currentThead().interrupt().
   This way the caller is not aware of the Interrupted status of the Thread and 
cannot deal with this situation appropriately.
   
   
   **Expected behavior**
   Returning null is fine, but we must set Thread.currentThread.interrupt() and 
also document this behaviour in the javadocs 
   


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