leonardBang commented on a change in pull request #19282:
URL: https://github.com/apache/flink/pull/19282#discussion_r838367692
##########
File path:
flink-connectors/flink-connector-kafka/src/test/java/org/apache/flink/streaming/connectors/kafka/KafkaTestEnvironmentImpl.java
##########
@@ -397,14 +397,14 @@ public void close() {
}
private void startKafkaContainerCluster(int numBrokers) {
- Network network = Network.newNetwork();
if (numBrokers > 1) {
+ Network network = Network.newNetwork();
Review comment:
I think a cleaner way to avoid 'ERROR: could not find an available,
non-overlapping IPv4 address pool among the defaults to assign to the network'
is release the created network resources after used it.
--
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]