Skip to content

Commit

Permalink
[MINOR] Following #2070, Fix BindException when running tests on shar…
Browse files Browse the repository at this point in the history
…ed machines. (#5951)
  • Loading branch information
cxzl25 committed Jun 30, 2022
1 parent 3948b89 commit 6a01f70
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ public MiniDFSCluster start(boolean format) throws IOException {

public void stop() {
LOG.info("HDFS Minicluster service being shut down.");
miniDfsCluster.shutdown();
if (miniDfsCluster != null) {
miniDfsCluster.shutdown();
}
miniDfsCluster = null;
hadoopConf = null;
}
Expand Down

0 comments on commit 6a01f70

Please sign in to comment.