Return-Path: X-Original-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-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 ECC9D90AE for ; Fri, 11 May 2012 20:07:12 +0000 (UTC) Received: (qmail 53923 invoked by uid 500); 11 May 2012 20:07:12 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 53880 invoked by uid 500); 11 May 2012 20:07:12 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 53872 invoked by uid 99); 11 May 2012 20:07:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 May 2012 20:07:12 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Fri, 11 May 2012 20:07:10 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 65107492DA8 for ; Fri, 11 May 2012 20:06:49 +0000 (UTC) Date: Fri, 11 May 2012 20:06:49 +0000 (UTC) From: "Ahmed Radwan (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: <492925491.56000.1336766809420.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1064238234.39457.1336494588112.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MAPREDUCE-4233) NPE can happen in RMNMNodeInfo. 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/MAPREDUCE-4233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13273564#comment-13273564 ] Ahmed Radwan commented on MAPREDUCE-4233: ----------------------------------------- Bobby, I see your point and I agree that keeping them missing is the simplest solution to avoid complicating the issue. +1 for the patch in the current shape. Thanks! > NPE can happen in RMNMNodeInfo. > ------------------------------- > > Key: MAPREDUCE-4233 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-4233 > Project: Hadoop Map/Reduce > Issue Type: Bug > Affects Versions: 0.23.3 > Reporter: Robert Joseph Evans > Assignee: Robert Joseph Evans > Priority: Critical > Attachments: MR-4233.txt > > > {noformat} > Caused by: java.lang.NullPointerException > at org.apache.hadoop.yarn.server.resourcemanager.RMNMInfo.getLiveNodeManagers(RMNMInfo.java:96) > at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93) > at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27) > at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208) > at com.sun.jmx.mbeanserver.PerInterface.getAttribute(PerInterface.java:65) > at com.sun.jmx.mbeanserver.MBeanSupport.getAttribute(MBeanSupport.java:216) > at javax.management.StandardMBean.getAttribute(StandardMBean.java:358) > at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:666) > {noformat} > Looks like rmcontext.getRMNodes() is not kept in sync with scheduler.getNodeReport(), so that the report can be null even though the context still knowns about the node. > The simple fix is to add in a null check. -- 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