Skip to content

Commit

Permalink
[HUDI-4456] Clean up test resources (apache#6203)
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiyan authored and fengjian committed Apr 5, 2023
1 parent d115474 commit 3047532
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ protected void cleanupClients() throws java.io.IOException {
protected void cleanupDFS() throws java.io.IOException {
if (hdfsTestService != null) {
hdfsTestService.stop();
dfsCluster.shutdown();
dfsCluster.shutdown(true, true);
hdfsTestService = null;
dfsCluster = null;
dfs = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ protected void cleanupClients() {
protected void cleanupDFS() throws IOException {
if (hdfsTestService != null) {
hdfsTestService.stop();
dfsCluster.shutdown();
dfsCluster.shutdown(true, true);
hdfsTestService = null;
dfsCluster = null;
dfs = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ protected void initDFSMetaClient() throws IOException {
protected void cleanupDFS() throws IOException {
if (hdfsTestService != null) {
hdfsTestService.stop();
dfsCluster.shutdown();
dfsCluster.shutdown(true, true);
hdfsTestService = null;
dfsCluster = null;
dfs = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public MiniDFSCluster start(boolean format) throws IOException {
public void stop() {
LOG.info("HDFS Minicluster service being shut down.");
if (miniDfsCluster != null) {
miniDfsCluster.shutdown();
miniDfsCluster.shutdown(true, true);
}
miniDfsCluster = null;
hadoopConf = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ public static void setUp() throws IOException, InterruptedException {

public static void shutdown() {
if (dfsCluster != null) {
dfsCluster.shutdown();
dfsCluster.shutdown(true, true);
}
if (zkServer != null) {
zkServer.shutdown();
zkServer.shutdown(true);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public static void setUpDFS() throws IOException {
public static void cleanUp() throws Exception {
if (hdfsTestService != null) {
hdfsTestService.stop();
dfsCluster.shutdown();
dfsCluster.shutdown(true, true);
dfsCluster = null;
dfs = null;
hdfsTestService = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public static void shutdown() throws IOException {
hiveTestService.stop();
}
if (zkServer != null) {
zkServer.shutdown();
zkServer.shutdown(true);
}
fileSystem.close();
}
Expand Down

0 comments on commit 3047532

Please sign in to comment.