Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 79803 invoked from network); 15 May 2006 20:15:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 May 2006 20:15:39 -0000 Received: (qmail 14139 invoked by uid 500); 15 May 2006 20:15:35 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 13946 invoked by uid 500); 15 May 2006 20:15:35 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 13841 invoked by uid 99); 15 May 2006 20:15:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 May 2006 13:15:34 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 May 2006 13:15:33 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 396A141000D for ; Mon, 15 May 2006 20:15:07 +0000 (GMT) Message-ID: <29142220.1147724107232.JavaMail.jira@brutus> Date: Mon, 15 May 2006 20:15:07 +0000 (GMT+00:00) From: "Doug Cutting (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Resolved: (HADOOP-219) SequenceFile#handleChecksumException NPE In-Reply-To: <8800423.1147717266857.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HADOOP-219?page=all ] Doug Cutting resolved HADOOP-219: --------------------------------- Fix Version: 0.3 Resolution: Fixed Assign To: Doug Cutting I just committed a fix for this. Instead of checking for a null configuration, I tried to make sure that a non-null configuration is always available. Thanks, Michael! > SequenceFile#handleChecksumException NPE > ---------------------------------------- > > Key: HADOOP-219 > URL: http://issues.apache.org/jira/browse/HADOOP-219 > Project: Hadoop > Type: Bug > Components: io > Reporter: stack@archive.org > Assignee: Doug Cutting > Priority: Trivial > Fix For: 0.3 > Attachments: hadoop-219.patch > > The SequenceFile#handleChecksumException assumes the conf data member has been set. It will not be set if we use the 'Reader(FileSystem fs, Path file, int bufferSize, long start, long length)' constructor. The latter is used by ReduceTask Sorter: > java.lang.NullPointerException > at org.apache.hadoop.io.SequenceFile$Reader.handleChecksumException(SequenceFile.java:407) > at org.apache.hadoop.io.SequenceFile$Reader.next(SequenceFile.java:400) > at org.apache.hadoop.io.SequenceFile$Sorter$MergeStream.next(SequenceFile.java:837) > at org.apache.hadoop.io.SequenceFile$Sorter$MergeQueue.merge(SequenceFile.java:881) > at org.apache.hadoop.io.SequenceFile$Sorter$MergePass.run(SequenceFile.java:766) > at org.apache.hadoop.io.SequenceFile$Sorter.mergePass(SequenceFile.java:702) > at org.apache.hadoop.io.SequenceFile$Sorter.sort(SequenceFile.java:528) > at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:253) > at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:787) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira