hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomwh...@apache.org
Subject svn commit: r532731 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/fs/ChecksumFileSystem.java
Date Thu, 26 Apr 2007 12:44:54 GMT
Author: tomwhite
Date: Thu Apr 26 05:44:53 2007
New Revision: 532731

URL: http://svn.apache.org/viewvc?view=rev&rev=532731
Log:
HADOOP-1262.  Make dfs client try to read from a different replica of the checksum file when
a checksum error is detected.  Contributed by Hairong Kuang.

Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/src/java/org/apache/hadoop/fs/ChecksumFileSystem.java

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?view=diff&rev=532731&r1=532730&r2=532731
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Thu Apr 26 05:44:53 2007
@@ -255,6 +255,10 @@
 76. HADOOP-1282.  Omnibus HBase patch.  Improved tests & configuration.
     (Jim Kellerman via cutting)
 
+77. HADOOP-1262.  Make dfs client try to read from a different replica 
+    of the checksum file when a checksum error is detected.  
+    (Hairong Kuang via tomwhite)
+
 
 Release 0.12.3 - 2007-04-06
 

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/fs/ChecksumFileSystem.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/fs/ChecksumFileSystem.java?view=diff&rev=532731&r1=532730&r2=532731
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/fs/ChecksumFileSystem.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/fs/ChecksumFileSystem.java Thu Apr 26 05:44:53
2007
@@ -315,8 +315,8 @@
 
     @Override
     public boolean seekToNewSource(long targetPos) throws IOException {
-      return datas.seekToNewSource(targetPos) ||
-        sums.seekToNewSource(targetPos/bytesPerSum);
+      boolean newDataSource = datas.seekToNewSource(targetPos);
+      return sums.seekToNewSource(targetPos/bytesPerSum) || newDataSource;
     }
 
   }



Mime
View raw message