فهرست منبع

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.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@532731 13f79535-47bb-0310-9956-ffa450edef68
Thomas White 18 سال پیش
والد
کامیت
17ec4c6f5b
2فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 4 0
      CHANGES.txt
  2. 2 2
      src/java/org/apache/hadoop/fs/ChecksumFileSystem.java

+ 4 - 0
CHANGES.txt

@@ -255,6 +255,10 @@ Trunk (unreleased changes)
 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
 

+ 2 - 2
src/java/org/apache/hadoop/fs/ChecksumFileSystem.java

@@ -315,8 +315,8 @@ public abstract class ChecksumFileSystem extends FilterFileSystem {
 
     @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;
     }
 
   }