David Mollitor created KAFKA-9415:
-------------------------------------
Summary: Review Thread Interrupt Usage
Key: KAFKA-9415
URL: https://issues.apache.org/jira/browse/KAFKA-9415
Project: Kafka
Issue Type: Improvement
Reporter: David Mollitor
Noticed a few places where the code inadvertently calls
{{Thread.interrupted()}} which returns a boolean value and clears the thread's
interrupt flag.
[https://docs.oracle.com/javase/8/docs/api/java/lang/Thread.html#interrupted--]
This is almost always a typo as it should be setting the flag, not clearing it
(since it's already cleared at the point in the code where it's called).
This got me looking across the code base so I added a few more.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)