HDFS-17133: TestFsDatasetImpl missing null check when cleaning up (#6079). Contributed by ConfX.
Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
This commit is contained in:
parent
390cd294f8
commit
8931393302
@ -1173,7 +1173,7 @@ private void testMoveBlockFailure(Configuration config) {
|
||||
LOG.info("Exception in testMoveBlockFailure ", ex);
|
||||
fail("Exception while testing testMoveBlockFailure ");
|
||||
} finally {
|
||||
if (cluster.isClusterUp()) {
|
||||
if (cluster != null && cluster.isClusterUp()) {
|
||||
cluster.shutdown();
|
||||
}
|
||||
}
|
||||
@ -1984,4 +1984,4 @@ public void tesInvalidateMissingBlock() throws Exception {
|
||||
cluster.shutdown();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user