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



##########
File path: 
streams/src/main/java/org/apache/kafka/streams/processor/internals/ProcessorStateManager.java
##########
@@ -266,7 +266,8 @@ public void registerStore(final StateStore store, final 
StateRestoreCallback sta
         }
 
         if (stores.containsKey(storeName)) {
-            throw new IllegalArgumentException(format("%sStore %s has already 
been registered.", logPrefix, storeName));
+            log.warn("State Store {} has already been registered, which could 
be due to a half-way registration" +

Review comment:
       I think we might want to skip the re-registration higher up the call 
stack. In `StateManagerUtil#registerStateStores` we call `store.init` on each 
store which ultimately results in this `registerStore` being called




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