janchilling commented on code in PR #18752: URL: https://github.com/apache/kafka/pull/18752#discussion_r1976670289
########## streams/src/test/java/org/apache/kafka/streams/processor/internals/GlobalStateTaskTest.java: ########## @@ -252,6 +252,10 @@ public void shouldCheckpointOffsetsWhenStateIsFlushed() { @Test public void shouldNotCheckpointIfNotReceivedEnoughRecords() { globalStateTask.initialize(); + // Reset after initialization since checkpointing should happen during initialization, KAFKA-18168 + stateMgr.checkpointWritten = false; + stateMgr.flushed = false; Review Comment: I've updated the test cases to match the above flow. -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org