Repository: hadoop
Updated Branches:
  refs/heads/branch-2.8 d7cda6d03 -> 730ce7616


MAPREDUCE-6678. Allow ShuffleHandler readahead without drop-behind. Contributed 
by Nathan Roberts.
(cherry picked from commit cd35b692de88e3afe7f41405da635c3fbd9b4650)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/730ce761
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/730ce761
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/730ce761

Branch: refs/heads/branch-2.8
Commit: 730ce761603562fef7f0b1f78217df71a16900ac
Parents: d7cda6d
Author: Eric Payne <[email protected]>
Authored: Tue May 10 15:45:01 2016 +0000
Committer: Eric Payne <[email protected]>
Committed: Tue May 10 16:07:16 2016 +0000

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/mapred/FadvisedFileRegion.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/730ce761/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-shuffle/src/main/java/org/apache/hadoop/mapred/FadvisedFileRegion.java
----------------------------------------------------------------------
diff --git 
a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-shuffle/src/main/java/org/apache/hadoop/mapred/FadvisedFileRegion.java
 
b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-shuffle/src/main/java/org/apache/hadoop/mapred/FadvisedFileRegion.java
index 6fd46a5..cb9b5e0 100644
--- 
a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-shuffle/src/main/java/org/apache/hadoop/mapred/FadvisedFileRegion.java
+++ 
b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-shuffle/src/main/java/org/apache/hadoop/mapred/FadvisedFileRegion.java
@@ -74,7 +74,7 @@ public class FadvisedFileRegion extends DefaultFileRegion {
   @Override
   public long transferTo(WritableByteChannel target, long position)
       throws IOException {
-    if (manageOsCache && readaheadPool != null) {
+    if (readaheadPool != null && readaheadLength > 0) {
       readaheadRequest = readaheadPool.readaheadStream(identifier, fd,
           getPosition() + position, readaheadLength,
           getPosition() + getCount(), readaheadRequest);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to