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/05/26 14:45:59 UTC

[GitHub] [flink] twalthr commented on a change in pull request #16002: [FLINK-22613][tests] Fix FlinkKinesisITCase.testStopWithSavepoint.

twalthr commented on a change in pull request #16002:
URL: https://github.com/apache/flink/pull/16002#discussion_r639792480



##########
File path: flink-connectors/flink-connector-kinesis/src/test/java/org/apache/flink/streaming/connectors/kinesis/FlinkKinesisITCase.java
##########
@@ -143,8 +143,13 @@ private String stopWithSavepoint() throws Exception {
     }
 
     private static class WaitingMapper implements MapFunction<String, String> {
-        static CountDownLatch firstElement = new CountDownLatch(1);
-        static volatile boolean stopped = false;
+        static CountDownLatch firstElement;
+        static volatile boolean stopped;
+
+        WaitingMapper() {

Review comment:
       what was the problem with the previous code 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:
users@infra.apache.org