You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by cd...@apache.org on 2010/02/13 13:46:38 UTC
svn commit: r909806 - in /hadoop/common/trunk: CHANGES.txt
src/java/org/apache/hadoop/fs/LocalDirAllocator.java
Author: cdouglas
Date: Sat Feb 13 12:46:38 2010
New Revision: 909806
URL: http://svn.apache.org/viewvc?rev=909806&view=rev
Log:
HADOOP-6534. Trim whitespace from directory lists initializing
LocalDirAllocator. Contributed by Todd Lipcon
Modified:
hadoop/common/trunk/CHANGES.txt
hadoop/common/trunk/src/java/org/apache/hadoop/fs/LocalDirAllocator.java
Modified: hadoop/common/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/CHANGES.txt?rev=909806&r1=909805&r2=909806&view=diff
==============================================================================
--- hadoop/common/trunk/CHANGES.txt (original)
+++ hadoop/common/trunk/CHANGES.txt Sat Feb 13 12:46:38 2010
@@ -137,6 +137,9 @@
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
Modified: hadoop/common/trunk/src/java/org/apache/hadoop/fs/LocalDirAllocator.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/src/java/org/apache/hadoop/fs/LocalDirAllocator.java?rev=909806&r1=909805&r2=909806&view=diff
==============================================================================
--- hadoop/common/trunk/src/java/org/apache/hadoop/fs/LocalDirAllocator.java (original)
+++ hadoop/common/trunk/src/java/org/apache/hadoop/fs/LocalDirAllocator.java Sat Feb 13 12:46:38 2010
@@ -213,7 +213,7 @@
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);