Browse Source

commit b5d80b9995862b73a236eaca4685d36edfdc0176
Author: Boris Shkolnik <borya@yahoo-inc.com>
Date: Tue Jan 25 11:01:29 2011 -0800

. Change DiskErrorException to IOExceptoin

+++ b/YAHOO-CHANGES.txt
+ . Change DiskErrorException to IOExceptoin (boryas)
+


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security-patches@1077776 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley 14 years ago
parent
commit
395438feaa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/hdfs/org/apache/hadoop/hdfs/server/datanode/DataNode.java

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

@@ -1471,7 +1471,7 @@ public class DataNode extends Configured
       try {
         DiskChecker.checkDir(localFS, new Path(dir), dataDirPermission);
         dirs.add(new File(dir));
-      } catch(DiskErrorException e) {
+      } catch(IOException e) {
         LOG.warn("Invalid directory in " + DATA_DIR_KEY +  ": " + 
                  e.getMessage());
       }