HDFS-5458. Datanode failed volume threshold ignored if exception is thrown in getDataDirsFromURIs. Contributed by Mike Mellenthin.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1539091 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Wang 2013-11-05 18:27:00 +00:00
parent 4550eac099
commit 8639ecb26d
2 changed files with 4 additions and 1 deletions

View File

@ -585,6 +585,9 @@ Release 2.2.1 - UNRELEASED
HDFS-5456. NameNode startup progress creates new steps if caller attempts to
create a counter for a step that doesn't already exist. (cnauroth)
HDFS-5458. Datanode failed volume threshold ignored if exception is thrown
in getDataDirsFromURIs. (Mike Mellenthin via wang)
Release 2.2.0 - 2013-10-13
INCOMPATIBLE CHANGES

View File

@ -1770,7 +1770,7 @@ static ArrayList<File> getDataDirsFromURIs(Collection<URI> dataDirs,
} catch (IOException ioe) {
LOG.warn("Invalid " + DFS_DATANODE_DATA_DIR_KEY + " "
+ dir + " : ", ioe);
invalidDirs.append("\"").append(dir.getCanonicalPath()).append("\" ");
invalidDirs.append("\"").append(dirURI.getPath()).append("\" ");
}
}
if (dirs.size() == 0) {