HDFS-3928. MiniDFSCluster should reset the first ExitException on shutdown. Contributed by Eli Collins

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1384092 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Eli Collins 2012-09-12 19:15:38 +00:00
parent 2ba149f85c
commit 4f312cfa70
2 changed files with 3 additions and 0 deletions

View File

@ -763,6 +763,8 @@ Release 2.0.2-alpha - 2012-09-07
HDFS-3664. BlockManager race when stopping active services.
(Colin Patrick McCabe via eli)
HDFS-3928. MiniDFSCluster should reset the first ExitException on shutdown. (eli)
BREAKDOWN OF HDFS-3042 SUBTASKS

View File

@ -1358,6 +1358,7 @@ public void shutdown() {
if (ExitUtil.terminateCalled()) {
LOG.fatal("Test resulted in an unexpected exit",
ExitUtil.getFirstExitException());
ExitUtil.resetFirstExitException();
throw new AssertionError("Test resulted in an unexpected exit");
}
}