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 267FF18DE8 for ; Tue, 7 Jul 2015 14:13:10 +0000 (UTC) Received: (qmail 18571 invoked by uid 500); 7 Jul 2015 14:13:05 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 18514 invoked by uid 500); 7 Jul 2015 14:13:05 -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 18277 invoked by uid 99); 7 Jul 2015 14:13:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jul 2015 14:13:04 +0000 Date: Tue, 7 Jul 2015 14:13:04 +0000 (UTC) From: "Junping Du (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (YARN-3445) Cache runningApps in RMNode for getting running apps on given NodeId 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-3445?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Junping Du updated YARN-3445: ----------------------------- Attachment: YARN-3445-v5.patch bq. It looks like RMNodeImpl's handle function already takes write lock for any state transition, and these private methods will only be invoked from state transition functions. Nice catch, [~mingma]! I could miss the lock in the caller, so remove unnecessary write lock in v5 patch. > Cache runningApps in RMNode for getting running apps on given NodeId > -------------------------------------------------------------------- > > Key: YARN-3445 > URL: https://issues.apache.org/jira/browse/YARN-3445 > Project: Hadoop YARN > Issue Type: Sub-task > Components: nodemanager, resourcemanager > Affects Versions: 2.7.0 > Reporter: Junping Du > Assignee: Junping Du > Attachments: YARN-3445-v2.patch, YARN-3445-v3.1.patch, YARN-3445-v3.patch, YARN-3445-v4.1.patch, YARN-3445-v4.patch, YARN-3445-v5.patch, YARN-3445.patch > > > Per discussion in YARN-3334, we need filter out unnecessary collectors info from RM in heartbeat response. Our propose is to add cache for runningApps in RMNode, so RM only send collectors for local running apps back. This is also needed in YARN-914 (graceful decommission) that if no running apps in NM which is in decommissioning stage, it will get decommissioned immediately. -- This message was sent by Atlassian JIRA (v6.3.4#6332)