Parcourir la source

svn merge -c 1453436 Merging from trunk to branch-0.23 to fix HDFS-4544.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1453548 13f79535-47bb-0310-9956-ffa450edef68
Kihwal Lee il y a 12 ans
Parent
commit
2225641d39

+ 3 - 0
hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt

@@ -53,6 +53,9 @@ Release 0.23.7 - UNRELEASED
     HDFS-4553. Webhdfs will NPE on some unexpected response codes (Daryn Sharp
     via kihwal)
 
+    HDFS-4544. Error in deleting blocks should not do check disk, for
+    all types of errors. (Arpit Agarwal via suresh)
+
 Release 0.23.6 - 2013-02-06
 
   INCOMPATIBLE CHANGES

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BPOfferService.java

@@ -711,7 +711,7 @@ class BPOfferService implements Runnable {
         // using global fsdataset
         dn.data.invalidate(bcmd.getBlockPoolId(), toDelete);
       } catch(IOException e) {
-        dn.checkDiskError();
+        // Exceptions caught here are not expected to be disk-related.
         throw e;
       }
       dn.metrics.incrBlocksRemoved(toDelete.length);