浏览代码

HADOOP-835. Fix a NullPointerException reading record-compressed SequenceFiles. Contributed by Hairong.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@489177 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting 18 年之前
父节点
当前提交
5e3918fd2c
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 3 0
      CHANGES.txt
  2. 1 0
      src/java/org/apache/hadoop/io/SequenceFile.java

+ 3 - 0
CHANGES.txt

@@ -134,6 +134,9 @@ Trunk (unreleased changes)
     standard input and output, respectively.  Standard i/o is
     specified by a file named '-'.  (Wendy Chien via cutting)
 
+38. HADOOP-835.  Fix a NullPointerException reading record-compressed
+    SequenceFiles.  (Hairong Kuang via cutting)
+
 
 Release 0.9.2 - 2006-12-15
 

+ 1 - 0
src/java/org/apache/hadoop/io/SequenceFile.java

@@ -1040,6 +1040,7 @@ public class SequenceFile {
           }
         } else {
           codec = new DefaultCodec();
+          ((Configurable)codec).setConf(conf);
         }
       }