Browse Source

HDFS-4544. Error in deleting blocks should not do check disk, for all types of errors. Contributed by Arpit Agarwal.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1@1453670 13f79535-47bb-0310-9956-ffa450edef68
Suresh Srinivas 12 years ago
parent
commit
199e84d7df
2 changed files with 4 additions and 1 deletions
  1. 3 0
      CHANGES.txt
  2. 1 1
      src/hdfs/org/apache/hadoop/hdfs/server/datanode/DataNode.java

+ 3 - 0
CHANGES.txt

@@ -520,6 +520,9 @@ Release 1.2.0 - unreleased
     MAPREDUCE-5028. Maps fail when io.sort.mb is set to high value.
     (kkambatl via tucu)
 
+    HDFS-4544. Error in deleting blocks should not do check disk, for
+    all types of errors. (Arpit Agarwal via suresh)
+
 Release 1.1.2 - Unreleased
 
   INCOMPATIBLE CHANGES

+ 1 - 1
src/hdfs/org/apache/hadoop/hdfs/server/datanode/DataNode.java

@@ -1227,7 +1227,7 @@ public class DataNode extends Configured
         }
         data.invalidate(toDelete);
       } catch(IOException e) {
-        checkDiskError();
+        // Exceptions caught here are not expected to be disk-related.
         throw e;
       }
       myMetrics.incrBlocksRemoved(toDelete.length);