Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.closeAll();
}
Expand Down