Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2159,10 +2159,11 @@ public void shutdown(boolean deleteDfsDir, boolean closeFileSystem) {
LOG.info("Shutting down the Mini HDFS Cluster");
if (checkExitOnShutdown) {
if (ExitUtil.terminateCalled()) {
LOG.error("Test resulted in an unexpected exit",
ExitUtil.getFirstExitException());
Exception cause = ExitUtil.getFirstExitException();
LOG.error("Test resulted in an unexpected exit", cause);
ExitUtil.resetFirstExitException();
throw new AssertionError("Test resulted in an unexpected exit");
throw new AssertionError("Test resulted in an unexpected exit: " +
cause.toString(), cause);
}
}
if (closeFileSystem) {
Expand Down