Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-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 D9595117CB for ; Wed, 27 Aug 2014 02:44:58 +0000 (UTC) Received: (qmail 11390 invoked by uid 500); 27 Aug 2014 02:44:58 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 11342 invoked by uid 500); 27 Aug 2014 02:44:58 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 11097 invoked by uid 99); 27 Aug 2014 02:44:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Aug 2014 02:44:58 +0000 Date: Wed, 27 Aug 2014 02:44:58 +0000 (UTC) From: "Maysam Yabandeh (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-2405) NPE in FairSchedulerAppsBlock (scheduler page) 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/YARN-2405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14111758#comment-14111758 ] Maysam Yabandeh commented on YARN-2405: --------------------------------------- Sounds good to me. We also need to decide of how to react to nonexistent app: return fair share of 0, -1, or skip the whole record from appsTableData? If the the problematic record is going to be skipped, instead of putting checks inside fair share computation, we can alternatively catch the NPE at FairSchedulerAppsBlock. > NPE in FairSchedulerAppsBlock (scheduler page) > ---------------------------------------------- > > Key: YARN-2405 > URL: https://issues.apache.org/jira/browse/YARN-2405 > Project: Hadoop YARN > Issue Type: Bug > Reporter: Maysam Yabandeh > > FairSchedulerAppsBlock#render throws NPE at this line > {code} > int fairShare = fsinfo.getAppFairShare(attemptId); > {code} > This causes the scheduler page now showing the app since it lack the definition of appsTableData > {code} > Uncaught ReferenceError: appsTableData is not defined > {code} > The problem is temporary meaning that it is usually resolved by itself either after a retry or after a few hours. -- This message was sent by Atlassian JIRA (v6.2#6252)