1
0

[MINOR] Following #2070, Fix BindException when running tests on shared machines. (#5951)

This commit is contained in:
cxzl25
2022-06-30 10:20:59 +08:00
committed by GitHub
parent 3948b8935a
commit 6a01f7029c

View File

@@ -103,7 +103,9 @@ public class HdfsTestService {
public void stop() { public void stop() {
LOG.info("HDFS Minicluster service being shut down."); LOG.info("HDFS Minicluster service being shut down.");
if (miniDfsCluster != null) {
miniDfsCluster.shutdown(); miniDfsCluster.shutdown();
}
miniDfsCluster = null; miniDfsCluster = null;
hadoopConf = null; hadoopConf = null;
} }