AHeise commented on a change in pull request #16002:
URL: https://github.com/apache/flink/pull/16002#discussion_r639799912
##########
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:
The previous version was not well-behaved if you rerun the test inside a
loop (globals were not reset properly).
--
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]