|
@@ -2159,10 +2159,11 @@ public class MiniDFSCluster implements AutoCloseable {
|
|
|
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) {
|