cadonna commented on code in PR #15361: URL: https://github.com/apache/kafka/pull/15361#discussion_r1507618245
########## streams/src/test/java/org/apache/kafka/streams/processor/internals/StreamTaskTest.java: ########## @@ -1664,18 +1664,17 @@ public void shouldNotCheckpointOffsetsAgainOnCommitIfSnapshotNotChangedMuch() { EasyMock.expect(recordCollector.offsets()).andReturn(singletonMap(changelogPartition, offset)).anyTimes(); stateManager.checkpoint(); - EasyMock.expectLastCall().once(); + EasyMock.expectLastCall().times(2); EasyMock.expect(stateManager.changelogOffsets()) .andReturn(singletonMap(changelogPartition, 10L)) // restoration checkpoint .andReturn(singletonMap(changelogPartition, 10L)) .andReturn(singletonMap(changelogPartition, 20L)); - EasyMock.expectLastCall(); EasyMock.replay(stateManager, recordCollector); task = createStatefulTask(createConfig("100"), true); task.initializeIfNeeded(); - task.completeRestoration(noOpResetter -> { }); + task.completeRestoration(noOpResetter -> { }); // should checkpoint Review Comment: These changes do not seem necessary. Could you please revert them? -- 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