mjsax commented on a change in pull request #11455:
URL: https://github.com/apache/kafka/pull/11455#discussion_r791324561
##########
File path: streams/src/main/java/org/apache/kafka/streams/KafkaStreams.java
##########
@@ -668,8 +669,10 @@ public synchronized void onChange(final Thread thread,
if (newState == GlobalStreamThread.State.RUNNING) {
maybeSetRunning();
} else if (newState == GlobalStreamThread.State.DEAD) {
- log.error("Global thread has died. The streams
application or client will now close to ERROR.");
- closeToError();
+ if (state != State.PENDING_SHUTDOWN) {
Review comment:
New solution: if the instance is not in `PENDING_SHUTDOW` we know that
an error happened and we log an ERROR and `closeToError`.
On a clean close, the instance with go to `PENDING_SHUTDOWN` first, before
shutting down the global thread, and we won't log an error and just proceed.
--
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]