Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BB186200BA5 for ; Wed, 19 Oct 2016 23:23:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B9ABB160ADC; Wed, 19 Oct 2016 21:23:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 364EA160AFB for ; Wed, 19 Oct 2016 23:23:00 +0200 (CEST) Received: (qmail 52310 invoked by uid 500); 19 Oct 2016 21:22:59 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 52079 invoked by uid 99); 19 Oct 2016 21:22:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Oct 2016 21:22:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 0AE5E2C4C78 for ; Wed, 19 Oct 2016 21:22:59 +0000 (UTC) Date: Wed, 19 Oct 2016 21:22:59 +0000 (UTC) From: "Haibo Chen (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (YARN-5753) fix NPE in AMRMClientImpl.getMatchingRequests() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 19 Oct 2016 21:23:00 -0000 [ https://issues.apache.org/jira/browse/YARN-5753?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Haibo Chen updated YARN-5753: ----------------------------- Attachment: yarn5753.002.patch Thanks [~asuresh] for your reviews! Attaching a new patch that includes a test. > fix NPE in AMRMClientImpl.getMatchingRequests() > ----------------------------------------------- > > Key: YARN-5753 > URL: https://issues.apache.org/jira/browse/YARN-5753 > Project: Hadoop YARN > Issue Type: Bug > Components: yarn > Affects Versions: 3.0.0-alpha1 > Reporter: Haibo Chen > Assignee: Haibo Chen > Attachments: yarn5753.001.patch, yarn5753.002.patch > > > {code:java} > RemoteRequestsTable remoteRequestsTable = getTable(0); > List> matchingRequests = > remoteRequestsTable.getMatchingRequests(priority, resourceName, executionType, capability); > {code} > remoteRequestsTable can be null, causing NPE. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org