HDFS-17443. add null check for fileSys and cluster before shutting down (#6683)
This commit is contained in:
parent
8528d5783d
commit
f3f6340746
@ -447,9 +447,13 @@ public void testNameEditsConfigsFailure() throws IOException {
|
||||
replication, SEED);
|
||||
checkFile(fileSys, file1, replication);
|
||||
} finally {
|
||||
if (fileSys != null) {
|
||||
fileSys.close();
|
||||
}
|
||||
if (cluster != null) {
|
||||
cluster.shutdown();
|
||||
}
|
||||
}
|
||||
|
||||
// 2
|
||||
// Start namenode with additional dfs.namenode.name.dir and dfs.namenode.edits.dir
|
||||
|
Loading…
Reference in New Issue
Block a user