HDFS-8043. NPE in MiniDFSCluster teardown. Contributed by Brahma Reddy Battula.
(cherry picked from commit 5459b241c8
)
This commit is contained in:
parent
e083c07913
commit
890238b496
|
@ -202,6 +202,8 @@ Release 2.8.0 - UNRELEASED
|
|||
HDFS-7863. Missing description of some methods and parameters in javadoc of
|
||||
FSDirDeleteOp. (Brahma Reddy Battula via ozawa)
|
||||
|
||||
HDFS-8043. NPE in MiniDFSCluster teardown. (Brahma Reddy Battula via ozawa)
|
||||
|
||||
Release 2.7.1 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -1748,6 +1748,7 @@ public class MiniDFSCluster {
|
|||
nameNode = null;
|
||||
}
|
||||
}
|
||||
if (base_dir != null) {
|
||||
if (deleteDfsDir) {
|
||||
base_dir.delete();
|
||||
} else {
|
||||
|
@ -1755,6 +1756,8 @@ public class MiniDFSCluster {
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Shutdown all DataNodes started by this class. The NameNode
|
||||
* is left running so that new DataNodes may be started.
|
||||
|
|
|
@ -85,8 +85,10 @@ public class TestDFSClientFailover {
|
|||
|
||||
@After
|
||||
public void tearDownCluster() throws IOException {
|
||||
if (cluster != null) {
|
||||
cluster.shutdown();
|
||||
}
|
||||
}
|
||||
|
||||
@After
|
||||
public void clearConfig() {
|
||||
|
|
Loading…
Reference in New Issue