mjsax commented on code in PR #16914:
URL: https://github.com/apache/kafka/pull/16914#discussion_r1727706554


##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/GlobalStreamThread.java:
##########
@@ -453,11 +453,15 @@ private void closeStateConsumer(final StateConsumer 
stateConsumer, final boolean
     @Override
     public synchronized void start() {
         super.start();
-        while (stillInitializing()) {
-            Utils.sleep(1);
-            if (startupException != null) {
-                throw startupException;
-            }
+        try {
+            initializationLatch.await();
+        } catch (final InterruptedException e) {
+            currentThread().interrupt();
+            throw new IllegalStateException("Thread was interrupted during 
initialization", e);

Review Comment:
   ```suggestion
               throw new IllegalStateException("GlobalStreamThread was 
interrupted during initialization", e);
   ```



-- 
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]

Reply via email to