Ver Fonte

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 há 14 anos atrás
pai
commit
114f59f796

+ 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();
     }
   }