[HUDI-4456] Clean up test resources (#6203)
This commit is contained in:
@@ -104,7 +104,7 @@ public class HdfsTestService {
|
||||
public void stop() {
|
||||
LOG.info("HDFS Minicluster service being shut down.");
|
||||
if (miniDfsCluster != null) {
|
||||
miniDfsCluster.shutdown();
|
||||
miniDfsCluster.shutdown(true, true);
|
||||
}
|
||||
miniDfsCluster = null;
|
||||
hadoopConf = null;
|
||||
|
||||
@@ -50,10 +50,10 @@ public class MiniClusterUtil {
|
||||
|
||||
public static void shutdown() {
|
||||
if (dfsCluster != null) {
|
||||
dfsCluster.shutdown();
|
||||
dfsCluster.shutdown(true, true);
|
||||
}
|
||||
if (zkServer != null) {
|
||||
zkServer.shutdown();
|
||||
zkServer.shutdown(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user