sunm2n commented on code in PR #24240:
URL: https://github.com/apache/kafka/pull/24240#discussion_r4607780031
##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/GlobalStreamThread.java:
##########
@@ -365,9 +368,15 @@ public void run() {
);
this.streamsUncaughtExceptionHandler.accept(e);
} catch (final Exception e) {
+ Thread.interrupted();
log.error("Error happened while maintaining global state store.
The streams application or client will now close to ERROR.", e);
this.streamsUncaughtExceptionHandler.accept(e);
} finally {
+ // Clear the interrupt status before closing the consumer, since
an interrupt
Review Comment:
You're right, thanks for checking it against a broker. I only looked at
maybeThrowInterruptException and missed that the poll sends the requests before
it gets there. The comment now says what actually happens: with the status set,
the close gives up after one network poll and throws an InterruptException.
There is one copy of it, in StateConsumer.close(), and the clear in catch
(Exception) has a comment now. I also fixed the same claim in the description.
--
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]