浏览代码

Fix TestEditLog.testSimpleEditLog to not ignore errors in cluster shutdown

(in response to review by Jitendra)


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/HDFS-1073@1148480 13f79535-47bb-0310-9956-ffa450edef68
Todd Lipcon 14 年之前
父节点
当前提交
114f59f796
共有 1 个文件被更改,包括 2 次插入6 次删除
  1. 2 6
      hdfs/src/test/hdfs/org/apache/hadoop/hdfs/server/namenode/TestEditLog.java

+ 2 - 6
hdfs/src/test/hdfs/org/apache/hadoop/hdfs/server/namenode/TestEditLog.java

@@ -220,12 +220,8 @@ public class TestEditLog extends TestCase {
       
       editLog.close();
     } finally {
-      try {
-        if(fileSys != null) fileSys.close();
-        if(cluster != null) cluster.shutdown();
-      } catch (Throwable t) {
-        LOG.error("Couldn't shut down", t);
-      }
+      if(fileSys != null) fileSys.close();
+      if(cluster != null) cluster.shutdown();
     }
   }