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 DCE5210933 for ; Thu, 11 Dec 2014 01:51:14 +0000 (UTC) Received: (qmail 85646 invoked by uid 500); 11 Dec 2014 01:51:14 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 85556 invoked by uid 500); 11 Dec 2014 01:51:14 -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 85332 invoked by uid 99); 11 Dec 2014 01:51:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Dec 2014 01:51:14 +0000 Date: Thu, 11 Dec 2014 01:51:14 +0000 (UTC) From: "Jian He (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-2920) CapacityScheduler should be notified when labels on nodes changed 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-2920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14241986#comment-14241986 ] Jian He commented on YARN-2920: ------------------------------- - typo: {{// if we a previously running NM, we need notify scheduler about this }} - we can send an event with a list of nodes {code} if (oldNM != null && rmDispatcher != null) { rmDispatcher.getEventHandler().handle( new NodeLabelsUpdateSchedulerEvent(nodeId, newLabels)); } {code} - use volatile keyword for the reference? {code} labelsRef.set(ImmutableSet.copyOf(labels)); {code} - how about containers running on a node without label, and now we are adding a label - this condition check is unnecessary {code} if (null == labels) { labels = CommonNodeLabelsManager.EMPTY_STRING_SET; } {code} > CapacityScheduler should be notified when labels on nodes changed > ----------------------------------------------------------------- > > Key: YARN-2920 > URL: https://issues.apache.org/jira/browse/YARN-2920 > Project: Hadoop YARN > Issue Type: Sub-task > Reporter: Wangda Tan > Assignee: Wangda Tan > Attachments: YARN-2920.1.patch, YARN-2920.2.patch, YARN-2920.3.patch > > > Currently, labels on nodes changes will only be handled by RMNodeLabelsManager, but that is not enough upon labels on nodes changes: > - Scheduler should be able to do take actions to running containers. (Like kill/preempt/do-nothing) > - Used / available capacity in scheduler should be updated for future planning. > We need add a new event to pass such updates to scheduler -- This message was sent by Atlassian JIRA (v6.3.4#6332)