hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r597133 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/fs/ChecksumFileSystem.java
Date Wed, 21 Nov 2007 16:21:05 GMT
Author: ddas
Date: Wed Nov 21 08:21:00 2007
New Revision: 597133

URL: http://svn.apache.org/viewvc?rev=597133&view=rev
Log:
HADOOP-2212. ChecksumFileSystem.getSumBufferSize might throw java.lang.ArithmeticException.
The fix is to initialize bytesPerChecksum to 0. Contributed by Michael Bieniosek

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?rev=597133&r1=597132&r2=597133&view=diff
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Wed Nov 21 08:21:00 2007
@@ -122,6 +122,10 @@
     completed by another (possibly speculative) map-task. This ensures that 
     map-slots are not needlessly held-up. (acmurthy)
 
+    HADOOP-2212. ChecksumFileSystem.getSumBufferSize might throw 
+    java.lang.ArithmeticException. The fix is to initialize bytesPerChecksum
+    to 0.  (Michael Bieniosek via ddas)
+
 
 Release 0.15.1 - 2007-11-27
 

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?rev=597133&r1=597132&r2=597133&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/fs/ChecksumFileSystem.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/fs/ChecksumFileSystem.java Wed Nov 21 08:21:00
2007
@@ -37,7 +37,7 @@
  *****************************************************************/
 public abstract class ChecksumFileSystem extends FilterFileSystem {
   private static final byte[] CHECKSUM_VERSION = new byte[] {'c', 'r', 'c', 0};
-  private int bytesPerChecksum;
+  private int bytesPerChecksum = 512;
 
   public static double getApproxChkSumLength(long size) {
     return ChecksumFSOutputSummer.CHKSUM_AS_FRACTION * size;



Mime
View raw message