You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2021/06/09 14:28:08 UTC

[GitHub] [flink] akalash commented on a change in pull request #16102: [FLINK-22818][runtime] IgnoreInFlightDataITCase is blocking the map s…

akalash commented on a change in pull request #16102:
URL: https://github.com/apache/flink/pull/16102#discussion_r648366475



##########
File path: flink-tests/src/test/java/org/apache/flink/test/checkpointing/IgnoreInFlightDataITCase.java
##########
@@ -179,11 +205,30 @@ public void initializeState(FunctionInitializationContext context) throws Except
 
     private static class SlowMap extends RichMapFunction<Integer, Integer> {
 
+        private static OneShotLatch checkpointReachSinkLatch;
+        private static AtomicInteger idGenerator;
+        public int subtaskMapId;
+
+        public SlowMap() {
+            checkpointReachSinkLatch = new OneShotLatch();
+            idGenerator = new AtomicInteger();

Review comment:
       Constructor isn't called during the deserialization so it is called only once when we called constructor explicitly so there is no such problem.




-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org