guozhangwang commented on a change in pull request #9170:
URL: https://github.com/apache/kafka/pull/9170#discussion_r469518409



##########
File path: 
streams/src/main/java/org/apache/kafka/streams/processor/internals/StateManagerUtil.java
##########
@@ -58,6 +58,9 @@ static boolean checkpointNeeded(final boolean 
enforceCheckpoint,
             return false;
         }
 
+        if (enforceCheckpoint)

Review comment:
       The null snapshot is for both active / standby tasks before the 
initializeIfNeeded is triggered, in that case, we should not overwrite the 
checkpoint even if it was enforced.




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