Author: vinodkv Date: Tue Mar 11 01:30:32 2014 New Revision: 1576172 URL: http://svn.apache.org/r1576172 Log: MAPREDUCE-5028. Fixed a bug in MapTask that was causing mappers to fail when a large value of io.sort.mb is set. Contributed by Karthik Kambatla. svn merge --ignore-ancestry -c 1576170 ../../trunk/
Modified: hadoop/common/branches/branch-2.4/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/DataInputBuffer.java Modified: hadoop/common/branches/branch-2.4/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/DataInputBuffer.java URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-2.4/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/DataInputBuffer.java?rev=1576172&r1=1576171&r2=1576172&view=diff ============================================================================== --- hadoop/common/branches/branch-2.4/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/DataInputBuffer.java (original) +++ hadoop/common/branches/branch-2.4/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/DataInputBuffer.java Tue Mar 11 01:30:32 2014 @@ -90,7 +90,10 @@ public class DataInputBuffer extends Dat /** Returns the current position in the input. */ public int getPosition() { return buffer.getPosition(); } - /** Returns the length of the input. */ + /** + * Returns the index one greater than the last valid character in the input + * stream buffer. + */ public int getLength() { return buffer.getLength(); } }