hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zs...@apache.org
Subject svn commit: r748403 - in /hadoop/core/trunk: CHANGES.txt src/core/org/apache/hadoop/io/compress/bzip2/CBZip2OutputStream.java
Date Fri, 27 Feb 2009 05:28:25 GMT
Author: zshao
Date: Fri Feb 27 05:28:25 2009
New Revision: 748403

URL: http://svn.apache.org/viewvc?rev=748403&view=rev
Log:
HADOOP-5326. Fixes CBZip2OutputStream data corruption problem. (Rodrigo Schmidt via zshao)

Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/src/core/org/apache/hadoop/io/compress/bzip2/CBZip2OutputStream.java

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=748403&r1=748402&r2=748403&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Fri Feb 27 05:28:25 2009
@@ -144,6 +144,9 @@
 
   BUG FIXES
     
+    HADOOP-5326. Fixes CBZip2OutputStream data corruption problem.
+    (Rodrigo Schmidt via zshao)
+
     HADOOP-4963. Fixes a logging to do with getting the location of
     map output file. (Amareshwari Sriramadasu via ddas)
 

Modified: hadoop/core/trunk/src/core/org/apache/hadoop/io/compress/bzip2/CBZip2OutputStream.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/core/org/apache/hadoop/io/compress/bzip2/CBZip2OutputStream.java?rev=748403&r1=748402&r2=748403&view=diff
==============================================================================
--- hadoop/core/trunk/src/core/org/apache/hadoop/io/compress/bzip2/CBZip2OutputStream.java
(original)
+++ hadoop/core/trunk/src/core/org/apache/hadoop/io/compress/bzip2/CBZip2OutputStream.java
Fri Feb 27 05:28:25 2009
@@ -1746,7 +1746,7 @@
     for (int i = 0; i < NUM_OVERSHOOT_BYTES; i++) {
       block[lastShadow + i + 2] = block[(i % (lastShadow + 1)) + 1];
     }
-    for (int i = lastShadow + NUM_OVERSHOOT_BYTES; --i >= 0;) {
+    for (int i = lastShadow + NUM_OVERSHOOT_BYTES +1; --i >= 0;) {
       quadrant[i] = 0;
     }
     block[0] = block[lastShadow + 1];



Mime
View raw message