kristoffSC commented on code in PR #20979:
URL: https://github.com/apache/flink/pull/20979#discussion_r991333075


##########
flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/operators/sink/committables/CommittableCollectorSerializerTest.java:
##########
@@ -72,38 +73,86 @@ void testCommittableCollectorV1SerDe() throws IOException {
 
     @Test
     void testCommittableCollectorV2SerDe() throws IOException {
-        final CommittableCollector<Integer> committableCollector = new 
CommittableCollector<>(2, 3);
-        committableCollector.addMessage(new CommittableSummary<>(2, 3, 1L, 1, 
1, 0));
-        committableCollector.addMessage(new CommittableSummary<>(2, 3, 2L, 1, 
1, 0));
-        committableCollector.addMessage(new CommittableWithLineage<>(1, 1L, 
2));
-        committableCollector.addMessage(new CommittableWithLineage<>(2, 2L, 
2));
+        int subtaskId = 2;

Review Comment:
   Hi @fapaul 
   I have modify CommitterOperatorTest::testStateRestore test to make sure we 
use proper `subtaskId` after operator recovery.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to