ableegoldman commented on a change in pull request #10646:
URL: https://github.com/apache/kafka/pull/10646#discussion_r634736745



##########
File path: 
streams/src/main/java/org/apache/kafka/streams/processor/internals/GlobalStateManagerImpl.java
##########
@@ -174,13 +176,15 @@ public void registerStore(final StateStore store, final 
StateRestoreCallback sta
             throw new IllegalArgumentException(String.format("Trying to 
register store %s that is not a known global store", store.name()));
         }
 
+        // register the store first, so that if later an exception is thrown 
then eventually while we call `close`

Review comment:
       I definitely think we need to triage and maybe clean up the existing 
Illegal-type exceptions today. Some may not be deterministic, but we still just 
drop everything and shut down without any further attempts at cleaning up. In 
those cases it's probably down to the specific situation whether it's 
appropriate to continue doing so and disallow recovery from this, or just fix 
the handling so it does clean all resources




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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to