Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 96918 invoked from network); 8 Mar 2007 17:48:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Mar 2007 17:48:46 -0000 Received: (qmail 35524 invoked by uid 500); 8 Mar 2007 17:48:54 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 35494 invoked by uid 500); 8 Mar 2007 17:48:54 -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 35209 invoked by uid 99); 8 Mar 2007 17:48:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Mar 2007 09:48:53 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Mar 2007 09:48:44 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 50605714075 for ; Thu, 8 Mar 2007 09:48:24 -0800 (PST) Message-ID: <27584730.1173376104326.JavaMail.root@brutus> Date: Thu, 8 Mar 2007 09:48:24 -0800 (PST) From: "David Bowen (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Updated: (HADOOP-1091) NPE from Simon in JT stdout In-Reply-To: <33320907.1173375384162.JavaMail.root@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 [ https://issues.apache.org/jira/browse/HADOOP-1091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] David Bowen updated HADOOP-1091: -------------------------------- Attachment: 1091.patch Two small, safe fixes. > NPE from Simon in JT stdout > ------------------------------ > > Key: HADOOP-1091 > URL: https://issues.apache.org/jira/browse/HADOOP-1091 > Project: Hadoop > Issue Type: Bug > Reporter: David Bowen > Assigned To: David Bowen > Fix For: 0.12.1 > > Attachments: 1091.patch > > > Seen in JT std out: > Exception in thread "Timer-0" java.lang.NullPointerException > at com.yahoo.simon.hadoop.metrics.Client.computeBlurbSize(Unknown Source) > at com.yahoo.simon.hadoop.metrics.Client.sendBlurb(Unknown Source) > at com.yahoo.simon.hadoop.metrics.SimonContext.emitRecord(Unknown Source) > at org.apache.hadoop.metrics.spi.AbstractMetricsContext.timerEvent(AbstractMetricsContext.java:295) > at org.apache.hadoop.metrics.spi.AbstractMetricsContext.access$000(AbstractMetricsContext.java:48) > at org.apache.hadoop.metrics.spi.AbstractMetricsContext$1.run(AbstractMetricsContext.java:242) > at java.util.TimerThread.mainLoop(Timer.java:512) > at java.util.TimerThread.run(Timer.java:462) > There are (at least) two bugs: > (1) o.a.h.metrics.MetricsRecord.setTag(String name, String value) will > cause this problem to happen (later) if value==null. It should treat a > null value as equivalent to an empty string. > (2) o.a.h.mapred.Counters.getGroupNames returns a collection which may > be getting updated concurrently. It needs to make a copy. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.