guozhangwang commented on code in PR #12279: URL: https://github.com/apache/kafka/pull/12279#discussion_r905554334
########## streams/src/test/java/org/apache/kafka/streams/processor/internals/StreamTaskTest.java: ########## @@ -1945,6 +1945,22 @@ public void shouldCheckpointOnCloseRestoringIfNoProgress() { EasyMock.verify(stateManager); } + @Test + public void shouldCheckpointState() { + stateManager.flush(); + EasyMock.expectLastCall().once(); + stateManager.checkpoint(); + EasyMock.expectLastCall().once(); + EasyMock.replay(stateManager); + + task = createOptimizedStatefulTask(createConfig("100"), consumer); + + task.initializeIfNeeded(); + task.maybeCheckpoint(true); Review Comment: Ack, added. -- 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