Browse Source

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 năm trước cách đây
mục cha
commit
3acbb058ba
2 tập tin đã thay đổi với 3 bổ sung2 xóa
  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();