sunm2n commented on code in PR #24240:
URL: https://github.com/apache/kafka/pull/24240#discussion_r4607783106
##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/GlobalStreamThread.java:
##########
@@ -474,6 +483,9 @@ private StateConsumer initialize() {
}
private void closeStateConsumer(final StateConsumer stateConsumer, final
boolean wipeStateStore) {
+ // Clear the interrupt status before closing the consumer, since an
interrupt
+ // can leave fetch sessions open on the brokers.
+ Thread.interrupted();
Review Comment:
Yes, that is simpler. The clear is at the top of StateConsumer.close() now,
and the ones in the finally and in closeStateConsumer() are gone, so three
clears are left: the two before the handler and this one.
--
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]