rkhachatryan commented on a change in pull request #16102:
URL: https://github.com/apache/flink/pull/16102#discussion_r648457128
##########
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:
I see. To me, it would be more readable to initialize those fields not
in constructor but in a static method called from the test body.
Or probably `SharedObjects` from #16064 can be used here.
--
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:
[email protected]