hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dhr...@apache.org
Subject svn commit: r605299 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/dfs/FSDatasetInterface.java
Date Tue, 18 Dec 2007 19:05:45 GMT
Author: dhruba
Date: Tue Dec 18 11:05:38 2007
New Revision: 605299

URL: http://svn.apache.org/viewvc?rev=605299&view=rev
Log:
HADOOP-2434. FSDatasetInterface read interface causes HDFS reads to occur
in 1 byte chunks, causing performance degradation.
(Raghu Angadi via dhruba)


Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSDatasetInterface.java

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?rev=605299&r1=605298&r2=605299&view=diff
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Tue Dec 18 11:05:38 2007
@@ -246,6 +246,10 @@
     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

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSDatasetInterface.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSDatasetInterface.java?rev=605299&r1=605298&r2=605299&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSDatasetInterface.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSDatasetInterface.java Tue Dec 18
11:05:38 2007
@@ -64,8 +64,8 @@
     }
     
     @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() {



Mime
View raw message