AHeise commented on a change in pull request #16108:
URL: https://github.com/apache/flink/pull/16108#discussion_r760025683



##########
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:
       This will probably not do anything. The issue is that multiple parallel 
processes are competing for the port on the same machine. Kafka tests are only 
executed non-parallel afaik, so there will never be 2 threads competing for the 
same port.




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


Reply via email to