Skip to content

Commit 48302ed

Browse files
committed
addressing review - remove ExitUtil changes
1 parent d4e5d9a commit 48302ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/MiniDFSCluster.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2159,10 +2159,10 @@ public void shutdown(boolean deleteDfsDir, boolean closeFileSystem) {
21592159
LOG.info("Shutting down the Mini HDFS Cluster");
21602160
if (checkExitOnShutdown) {
21612161
if (ExitUtil.terminateCalled()) {
2162-
LOG.error("Test resulted in an unexpected exit",
2163-
ExitUtil.getFirstExitException());
2162+
ExitUtil.ExitException exitException = ExitUtil.getFirstExitException();
2163+
LOG.error("Test resulted in an unexpected exit", exitException);
21642164
ExitUtil.resetFirstExitException();
2165-
throw new AssertionError("Test resulted in an unexpected exit");
2165+
throw new AssertionError("Test resulted in an unexpected exit", exitException);
21662166
}
21672167
}
21682168
if (closeFileSystem) {

0 commit comments

Comments
 (0)