You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-commits@hadoop.apache.org by el...@apache.org on 2012/07/15 21:43:40 UTC
svn commit: r1361775 - in
/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs: CHANGES.txt
src/test/java/org/apache/hadoop/hdfs/MiniDFSCluster.java
Author: eli
Date: Sun Jul 15 19:43:39 2012
New Revision: 1361775
URL: http://svn.apache.org/viewvc?rev=1361775&view=rev
Log:
HDFS-3663. MiniDFSCluster should capture the code path that led to the first ExitException. Contributed by Eli Collins
Modified:
hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/MiniDFSCluster.java
Modified: hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt?rev=1361775&r1=1361774&r2=1361775&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt (original)
+++ hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt Sun Jul 15 19:43:39 2012
@@ -327,6 +327,9 @@ Branch-2 ( Unreleased changes )
HDFS-3610. fuse_dfs: Provide a way to use the default (configured) NN URI.
(Colin Patrick McCabe via eli)
+ HDFS-3663. MiniDFSCluster should capture the code path that led to
+ the first ExitException. (eli)
+
OPTIMIZATIONS
HDFS-2982. Startup performance suffers when there are many edit log
Modified: hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/MiniDFSCluster.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/MiniDFSCluster.java?rev=1361775&r1=1361774&r2=1361775&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/MiniDFSCluster.java (original)
+++ hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/MiniDFSCluster.java Sun Jul 15 19:43:39 2012
@@ -1316,9 +1316,11 @@ public class MiniDFSCluster {
public void shutdown() {
LOG.info("Shutting down the Mini HDFS Cluster");
if (checkExitOnShutdown) {
- if (ExitUtil.terminateCalled()) {
- throw new AssertionError("Test resulted in an unexpected exit");
- }
+ if (ExitUtil.terminateCalled()) {
+ LOG.fatal("Test resulted in an unexpected exit",
+ ExitUtil.getFirstExitException());
+ throw new AssertionError("Test resulted in an unexpected exit");
+ }
}
shutdownDataNodes();
for (NameNodeInfo nnInfo : nameNodes) {