ableegoldman commented on code in PR #19400:
URL: https://github.com/apache/kafka/pull/19400#discussion_r2071529203
##########
streams/src/main/java/org/apache/kafka/streams/KafkaStreams.java:
##########
@@ -1181,7 +1180,6 @@ private Optional<String> removeStreamThread(final long
timeoutMs) throws Timeout
final boolean callingThreadIsNotCurrentStreamThread =
!streamThread.getName().equals(Thread.currentThread().getName());
if (streamThread.isThreadAlive() &&
(callingThreadIsNotCurrentStreamThread || numLiveStreamThreads() == 1)) {
log.info("Removing StreamThread {}",
streamThread.getName());
- final Optional<String> groupInstanceID =
streamThread.groupInstanceID();
streamThread.requestLeaveGroupDuringShutdown();
streamThread.shutdown();
Review Comment:
In fact, we should probably never call the plain `stream#shutdown` method
anymore and can get rid of it altogether to make sure we always use the right
method and `leaveGroup` operation.
--
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]