HADOOP-6534. Trim whitespace from directory lists initializing

LocalDirAllocator. Contributed by Todd Lipcon


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@909806 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Christopher Douglas 2010-02-13 12:46:38 +00:00
parent fc83909c3f
commit 96a1477d02
2 changed files with 4 additions and 1 deletions

View File

@ -137,6 +137,9 @@ Trunk (unreleased changes)
HADOOP-6552. Puts renewTGT=true and useTicketCache=true for the keytab
kerberos options. (ddas)
HADOOP-6534. Trim whitespace from directory lists initializing
LocalDirAllocator. (Todd Lipcon via cdouglas)
OPTIMIZATIONS
BUG FIXES

View File

@ -213,7 +213,7 @@ public class LocalDirAllocator {
private void confChanged(Configuration conf) throws IOException {
String newLocalDirs = conf.get(contextCfgItemName);
if (!newLocalDirs.equals(savedLocalDirs)) {
localDirs = conf.getStrings(contextCfgItemName);
localDirs = conf.getTrimmedStrings(contextCfgItemName);
localFS = FileSystem.getLocal(conf);
int numDirs = localDirs.length;
ArrayList<String> dirs = new ArrayList<String>(numDirs);