showuon commented on code in PR #26048:
URL: https://github.com/apache/flink/pull/26048#discussion_r1924825295
##########
flink-tests/src/test/java/org/apache/flink/test/streaming/api/datastream/WatermarkITCase.java:
##########
@@ -135,6 +135,27 @@ void after() throws Exception {
}
}
+ private JobID submitJobAndWaitForOperator3Initialized(
+ StreamGraph streamGraph, boolean watermarkIsLongType)
+ throws ExecutionException, InterruptedException {
+ // block operator2's subtask 0 and subtask 1
+ Operator2ProcessFunction.blockSubTasks(0, 1);
+
+ // submit job
+ JobID jobId = flinkCluster.submitJob(streamGraph).get().getJobID();
+
+ // wait all operator3 tasks have initialized completely
+ tryWaitUntilCondition(
+ () -> Operator3ProcessFunction.receivedWatermarks.size() ==
DEFAULT_PARALLELISM);
Review Comment:
Here is the main fix, by waiting for `receivedWatermarks` size, not
`attemptIds` size.
--
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]