فهرست منبع

HADOOP-1090. Fix SortValidator's detection of whether the input file belongs to the sort-input or sort-output directory. Contributed by Arun C Murthy.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@524659 13f79535-47bb-0310-9956-ffa450edef68
Thomas White 18 سال پیش
والد
کامیت
da6e7fee07
2فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 4 0
      CHANGES.txt
  2. 1 1
      src/test/org/apache/hadoop/mapred/SortValidator.java

+ 4 - 0
CHANGES.txt

@@ -82,6 +82,10 @@ Trunk (unreleased changes)
 25. HADOOP-1170.  Improve datanode performance by removing device
     checks from common operations.  (Igor Bolotin via cutting)
 
+26. HADOOP-1090.  Fix SortValidator's detection of whether the input 
+    file belongs to the sort-input or sort-output directory.
+    (Arun C Murthy via tomwhite)
+
 
 Release 0.12.3 (not yet released)
 

+ 1 - 1
src/test/org/apache/hadoop/mapred/SortValidator.java

@@ -72,7 +72,7 @@ public class SortValidator {
     }
     
     // value == one for sort-input; value == two for sort-output
-    return (inputFile.toString().startsWith(inputPaths[0].toString())) ? 
+    return (inputFile.startsWith(inputPaths[0].toString()+"/")) ? 
             sortInput : sortOutput;
   }