dajac commented on PR #16686:
URL: https://github.com/apache/kafka/pull/16686#issuecomment-2426629731

   ```
    * Note that while it is possible to use thread interrupts instead of {@link 
#wakeup()} to abort a blocking operation
    * (in which case, {@link InterruptException} will be raised), we discourage 
their use since they may cause a clean
    * shutdown of the consumer to be aborted. Interrupts are mainly supported 
for those cases where using {@link #wakeup()}
    * is impossible, e.g. when a consumer thread is managed by code that is 
unaware of the Kafka client.
   ```
   
   We have actually this in the documentation. I was not aware of it. It 
clearly state that relying on interrupts is discouraged because it may cause a 
clean shutdown of the consumer to be aborted. Based on this, it seems to me 
that we do not really need to care about 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.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to