Skip to content

Commit

Permalink
HDFS-17133: TestFsDatasetImpl missing null check when cleaning up (#6079
Browse files Browse the repository at this point in the history
). Contributed by ConfX.

Signed-off-by: Ayush Saxena <[email protected]>
  • Loading branch information
teamconfx authored Sep 29, 2023
1 parent 390cd29 commit 8931393
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down Expand Up @@ -1984,4 +1984,4 @@ public void tesInvalidateMissingBlock() throws Exception {
cluster.shutdown();
}
}
}
}

0 comments on commit 8931393

Please sign in to comment.