paul8263 commented on a change in pull request #16108:
URL: https://github.com/apache/flink/pull/16108#discussion_r762725154
##########
File path:
flink-connectors/flink-connector-kafka/src/test/java/org/apache/flink/streaming/connectors/kafka/KafkaTestEnvironmentImpl.java
##########
@@ -125,7 +125,10 @@ public void prepare(Config config) throws Exception {
zookeeper = null;
brokers.clear();
- zookeeper = new TestingServer(-1, tmpZkDir);
+ synchronized (KafkaTestEnvironmentImpl.class) {
+ zookeeper = new TestingServer(-1, tmpZkDir);
+ }
+
Review comment:
Thank you for your advice @AHeise , I implemented a file lock to avoid
race condition among multiple unit test processes.
--
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]