浏览代码

HADOOP-2434. FSDatasetInterface read interface causes HDFS reads to occur
in 1 byte chunks, causing performance degradation.
(Raghu Angadi via dhruba)



git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@605299 13f79535-47bb-0310-9956-ffa450edef68

Dhruba Borthakur 17 年之前
父节点
当前提交
0d0d219132
共有 2 个文件被更改,包括 6 次插入2 次删除
  1. 4 0
      CHANGES.txt
  2. 2 2
      src/java/org/apache/hadoop/dfs/FSDatasetInterface.java

+ 4 - 0
CHANGES.txt

@@ -246,6 +246,10 @@ Trunk (unreleased changes)
     HADOOP-2376. Prevents sort example from overriding the number of maps.
     HADOOP-2376. Prevents sort example from overriding the number of maps.
     (Owen O'Malley via ddas)
     (Owen O'Malley via ddas)
 
 
+    HADOOP-2434. FSDatasetInterface read interface causes HDFS reads to occur 
+    in 1 byte chunks, causing performance degradation.
+    (Raghu Angadi via dhruba)
+
 Branch 0.15 (unreleased)
 Branch 0.15 (unreleased)
 
 
   BUG FIXES
   BUG FIXES

+ 2 - 2
src/java/org/apache/hadoop/dfs/FSDatasetInterface.java

@@ -64,8 +64,8 @@ public interface FSDatasetInterface {
     }
     }
     
     
     @Override
     @Override
-    public int read(byte[] b) throws IOException { 
-      return inStream.read(b);
+    public int read(byte[] b, int off, int len) throws IOException {
+      return inStream.read(b, off, len);
     }
     }
     
     
     public long getLength() {
     public long getLength() {