Browse Source

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 years ago
parent
commit
0d0d219132
2 changed files with 6 additions and 2 deletions
  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.
     (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)
 
   BUG FIXES

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

@@ -64,8 +64,8 @@ public interface FSDatasetInterface {
     }
     
     @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() {