Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 263F3995B for ; Sun, 1 Jul 2012 10:40:25 +0000 (UTC) Received: (qmail 55582 invoked by uid 500); 1 Jul 2012 10:40:24 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 55418 invoked by uid 500); 1 Jul 2012 10:40:24 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 55396 invoked by uid 99); 1 Jul 2012 10:40:23 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Jul 2012 10:40:23 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 3311F1418F1 for ; Sun, 1 Jul 2012 10:40:23 +0000 (UTC) Date: Sun, 1 Jul 2012 10:40:23 +0000 (UTC) From: "Hadoop QA (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <199607828.76389.1341139223210.JavaMail.jiratomcat@issues-vm> In-Reply-To: <342101404.57825.1340736824285.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (HADOOP-8531) SequenceFile Writer can throw out a better error if a serializer isn't available MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-8531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13404707#comment-13404707 ] Hadoop QA commented on HADOOP-8531: ----------------------------------- -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12534147/HADOOP-8531-1.patch against trunk revision . +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 1 new or modified test files. -1 javac. The applied patch generated 2072 javac compiler warnings (more than the trunk's current 2070 warnings). +1 javadoc. The javadoc tool did not generate any warning messages. +1 eclipse:eclipse. The patch built with eclipse:eclipse. +1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. +1 core tests. The patch passed unit tests in hadoop-common-project/hadoop-common. +1 contrib tests. The patch passed contrib unit tests. Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/1159//testReport/ Javac warnings: https://builds.apache.org/job/PreCommit-HADOOP-Build/1159//artifact/trunk/trunk/patchprocess/diffJavacWarnings.txt Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/1159//console This message is automatically generated. > SequenceFile Writer can throw out a better error if a serializer isn't available > -------------------------------------------------------------------------------- > > Key: HADOOP-8531 > URL: https://issues.apache.org/jira/browse/HADOOP-8531 > Project: Hadoop Common > Issue Type: Improvement > Reporter: Harsh J > Assignee: madhukara phatak > Priority: Trivial > Labels: newbie > Attachments: HADOOP-8531-1.patch, HADOOP-8531.patch > > > Currently, if the provided Key/Value class lacks a proper serializer in the loaded config for the SequenceFile.Writer, we get an NPE as the null return goes unchecked. > Hence we get: > {code} > java.lang.NullPointerException > at org.apache.hadoop.io.SequenceFile$Writer.init(SequenceFile.java:1163) > at org.apache.hadoop.io.SequenceFile$Writer.(SequenceFile.java:1079) > at org.apache.hadoop.io.SequenceFile$RecordCompressWriter.(SequenceFile.java:1331) > at org.apache.hadoop.io.SequenceFile.createWriter(SequenceFile.java:271) > {code} > We can provide a better message + exception in such cases. This is slightly related to MAPREDUCE-2584. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira