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 5B979200BA1 for ; Mon, 3 Oct 2016 07:22:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5A34A160AEA; Mon, 3 Oct 2016 05:22:22 +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 95D21160AD8 for ; Mon, 3 Oct 2016 07:22:21 +0200 (CEST) Received: (qmail 3165 invoked by uid 500); 3 Oct 2016 05:22:20 -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 3145 invoked by uid 99); 3 Oct 2016 05:22:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2016 05:22:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 748AB2C2A5F for ; Mon, 3 Oct 2016 05:22:20 +0000 (UTC) Date: Mon, 3 Oct 2016 05:22:20 +0000 (UTC) From: "Hudson (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-5678) Log demand as demand in FSLeafQueue and FSParentQueue MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 03 Oct 2016 05:22:22 -0000 [ https://issues.apache.org/jira/browse/YARN-5678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15541572#comment-15541572 ] Hudson commented on YARN-5678: ------------------------------ SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #10527 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/10527/]) YARN-5678. Log demand as demand in FSLeafQueue and FSParentQueue. (Yufei (kasha: rev 82857037b6e960dccdaf9e6b1b238411498a0dfe) * (edit) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/FSParentQueue.java * (edit) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/FSLeafQueue.java > Log demand as demand in FSLeafQueue and FSParentQueue > ----------------------------------------------------- > > Key: YARN-5678 > URL: https://issues.apache.org/jira/browse/YARN-5678 > Project: Hadoop YARN > Issue Type: Bug > Components: fairscheduler > Affects Versions: 3.0.0-alpha1 > Reporter: Yufei Gu > Assignee: Yufei Gu > Fix For: 2.9.0 > > Attachments: YARN-5678.001.patch > > > {code} > private void updateDemandForApp(FSAppAttempt sched, Resource maxRes) { > sched.updateDemand(); > Resource toAdd = sched.getDemand(); > if (LOG.isDebugEnabled()) { > LOG.debug("Counting resource from " + sched.getName() + " " + toAdd > + "; Total resource consumption for " + getName() + " now " > + demand); > } > demand = Resources.add(demand, toAdd); > demand = Resources.componentwiseMin(demand, maxRes); > } > {code} > Change the "resource consumption" to "resource demand", since at that time resources haven't been consumed yet. -- 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