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:
ConfX 2023-09-29 01:36:24 -05:00 committed by GitHub
parent 390cd294f8
commit 8931393302
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}
}