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);
|
LOG.info("Exception in testMoveBlockFailure ", ex);
|
||||||
fail("Exception while testing testMoveBlockFailure ");
|
fail("Exception while testing testMoveBlockFailure ");
|
||||||
} finally {
|
} finally {
|
||||||
if (cluster.isClusterUp()) {
|
if (cluster != null && cluster.isClusterUp()) {
|
||||||
cluster.shutdown();
|
cluster.shutdown();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user