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 C473597FF for ; Wed, 16 Nov 2011 23:10:15 +0000 (UTC) Received: (qmail 76942 invoked by uid 500); 16 Nov 2011 23:10:15 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 76879 invoked by uid 500); 16 Nov 2011 23:10:15 -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 76871 invoked by uid 99); 16 Nov 2011 23:10:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2011 23:10:15 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2011 23:10:12 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id EBAA988603 for ; Wed, 16 Nov 2011 23:09:51 +0000 (UTC) Date: Wed, 16 Nov 2011 23:09:51 +0000 (UTC) From: "John Lee (Updated) (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <75205143.36668.1321484991966.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <23832967.30051288965765186.JavaMail.jira@thor> Subject: [jira] [Updated] (HADOOP-7021) MapWritable NullPointerException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-7021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Lee updated HADOOP-7021: ----------------------------- Status: Open (was: Patch Available) > 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.21.0, 0.20.1 > Environment: Hadoop 0.20.1, Centos > Reporter: John Lee > Assignee: John Lee > Priority: Minor > Fix For: 0.20.1 > > Attachments: 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 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