lucasbru commented on code in PR #24240:
URL: https://github.com/apache/kafka/pull/24240#discussion_r4641831893
##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/GlobalStreamThread.java:
##########
@@ -278,6 +278,9 @@ long maxStoreUncommittedBytes() {
}
public void close(final boolean wipeStateStore) throws IOException {
+ // Clear the interrupt status before closing the consumer. With
the status set,
+ // the close gives up after one network poll and throws an
InterruptException.
+ Thread.interrupted();
try {
globalConsumer.close();
} catch (final RuntimeException e) {
Review Comment:
StateConsumer is a package-private nested class, and close() is only called
from run() and closeStateConsumer(), both on the global thread right before it
exits. So there's no other caller whose interrupt could get swallowed, and
restoring the flag wouldn't change anything.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]