瀏覽代碼

HADOOP-5963. Remove an unnecessary exception catch in NNBench. Contributed by Boris Shkolnik

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@782708 13f79535-47bb-0310-9956-ffa450edef68
Tsz-wo Sze 16 年之前
父節點
當前提交
3acbb058ba
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 3 0
      CHANGES.txt
  2. 0 2
      src/test/hdfs-with-mr/org/apache/hadoop/hdfs/NNBench.java

+ 3 - 0
CHANGES.txt

@@ -792,6 +792,9 @@ Trunk (unreleased changes)
     HADOOP-5457. Fix to continue to run builds even if contrib test fails
     (Giridharan Kesavan via gkesavan)
 
+    HADOOP-5963. Remove an unnecessary exception catch in NNBench.  (Boris
+    Shkolnik via szetszwo)
+
 Release 0.20.1 - Unreleased
 
   INCOMPATIBLE CHANGES

+ 0 - 2
src/test/hdfs-with-mr/org/apache/hadoop/hdfs/NNBench.java

@@ -150,8 +150,6 @@ public class NNBench {
         writer = SequenceFile.createWriter(tempFS, config, filePath, Text.class, 
                 LongWritable.class, CompressionType.NONE);
         writer.append(new Text(strFileName), new LongWritable(0l));
-      } catch(Exception e) {
-        throw new IOException(e.getLocalizedMessage());
       } finally {
         if (writer != null) {
           writer.close();