MAPREDUCE-4274 MapOutputBuffer should use native byte order for kvmeta. (todd via bobby)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1341151 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d69510a7f8
commit
2eebc21a55
|
@ -130,6 +130,9 @@ Release 2.0.1-alpha - UNRELEASED
|
|||
MAPREDUCE-4002. MultiFileWordCount job fails if the input path is not
|
||||
from default file system. (Bhallamudi Venkata Siva Kamesh via todd)
|
||||
|
||||
MAPREDUCE-4274 MapOutputBuffer should use native byte order for kvmeta.
|
||||
(todd via bobby)
|
||||
|
||||
Release 2.0.0-alpha - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -25,6 +25,7 @@ import java.io.File;
|
|||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.ByteOrder;
|
||||
import java.nio.IntBuffer;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
@ -911,7 +912,9 @@ class MapTask extends Task {
|
|||
maxMemUsage -= maxMemUsage % METASIZE;
|
||||
kvbuffer = new byte[maxMemUsage];
|
||||
bufvoid = kvbuffer.length;
|
||||
kvmeta = ByteBuffer.wrap(kvbuffer).asIntBuffer();
|
||||
kvmeta = ByteBuffer.wrap(kvbuffer)
|
||||
.order(ByteOrder.nativeOrder())
|
||||
.asIntBuffer();
|
||||
setEquator(0);
|
||||
bufstart = bufend = bufindex = equator;
|
||||
kvstart = kvend = kvindex;
|
||||
|
|
Loading…
Reference in New Issue