HDFS-8043. NPE in MiniDFSCluster teardown. Contributed by Brahma Reddy Battula.
This commit is contained in:
parent
5112477d9e
commit
5459b241c8
|
@ -520,6 +520,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
|
||||
|
|
|
@ -1744,11 +1744,14 @@ public class MiniDFSCluster {
|
|||
nameNode = null;
|
||||
}
|
||||
}
|
||||
if (deleteDfsDir) {
|
||||
if (base_dir != null) {
|
||||
if (deleteDfsDir) {
|
||||
base_dir.delete();
|
||||
} else {
|
||||
} else {
|
||||
base_dir.deleteOnExit();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -85,7 +85,9 @@ public class TestDFSClientFailover {
|
|||
|
||||
@After
|
||||
public void tearDownCluster() throws IOException {
|
||||
cluster.shutdown();
|
||||
if (cluster != null) {
|
||||
cluster.shutdown();
|
||||
}
|
||||
}
|
||||
|
||||
@After
|
||||
|
|
Loading…
Reference in New Issue