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 4DCFE18683 for ; Fri, 8 May 2015 23:44:01 +0000 (UTC) Received: (qmail 26156 invoked by uid 500); 8 May 2015 23:44:01 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 26107 invoked by uid 500); 8 May 2015 23:44:01 -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 26095 invoked by uid 99); 8 May 2015 23:44:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 May 2015 23:44:01 +0000 Date: Fri, 8 May 2015 23:44:00 +0000 (UTC) From: "Hadoop QA (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-7021) MapWritable NullPointerException 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-7021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14535921#comment-14535921 ] Hadoop QA commented on HADOOP-7021: ----------------------------------- \\ \\ | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:red}-1{color} | patch | 0m 0s | The patch command could not apply the patch during dryrun. | \\ \\ || Subsystem || Report/Notes || | Patch URL | http://issues.apache.org/jira/secure/attachment/12731612/HADOOP-7021.02.patch | | Optional Tests | javadoc javac unit findbugs checkstyle | | git revision | trunk / 08f0ae4 | | Console output | https://builds.apache.org/job/PreCommit-HADOOP-Build/6563/console | This message was automatically generated. > MapWritable NullPointerException > -------------------------------- > > Key: HADOOP-7021 > URL: https://issues.apache.org/jira/browse/HADOOP-7021 > Project: Hadoop Common > Issue Type: Bug > Components: io > Affects Versions: 0.20.1, 0.21.0 > Environment: Hadoop 0.20.1, Centos > Reporter: John Lee > Assignee: John Lee > Priority: Minor > Labels: BB2015-05-RFC > Attachments: HADOOP-7021.02.patch, HADOOP-7021.patch, HADOOP-7021.patch, HADOOP-7021.patch, HADOOP-7021.patch > > > We have encountered a NullPointerException when we use MapWritable with custom Writable objects. > The root cause is the counter newClasses in AbstractMapWritable is allowed to get out of sync with the id to class mapping tables when addToMap(Class) is called. We have a patch to AbstractMapWritable.addToMap(Class) that handles the case when newClasses gets out of sync with the id to class mapping tables and adds a serialization optimization to minimize the number of class names to write out per MapWritable object. -- This message was sent by Atlassian JIRA (v6.3.4#6332)