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 6582319366 for ; Tue, 26 Apr 2016 12:54:13 +0000 (UTC) Received: (qmail 93768 invoked by uid 500); 26 Apr 2016 12:54:13 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 93709 invoked by uid 500); 26 Apr 2016 12:54:13 -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 93638 invoked by uid 99); 26 Apr 2016 12:54:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Apr 2016 12:54:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 036852C1F5C for ; Tue, 26 Apr 2016 12:54:13 +0000 (UTC) Date: Tue, 26 Apr 2016 12:54:13 +0000 (UTC) From: "Karthik Kambatla (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-4808) SchedulerNode can use a few more cosmetic changes 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-4808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15258023#comment-15258023 ] Karthik Kambatla commented on YARN-4808: ---------------------------------------- I briefly looked at YARN-4390, and commented there. A couple of comments here: # We don't really need the ResourceUtilization fields. Reading them from RMNode seems very fair. # I am comfortable leaving numContainers volatile. Actually, since SchedulerNode has more changes coming, may be I should close this as a duplicate of YARN-4511? > SchedulerNode can use a few more cosmetic changes > ------------------------------------------------- > > Key: YARN-4808 > URL: https://issues.apache.org/jira/browse/YARN-4808 > Project: Hadoop YARN > Issue Type: Improvement > Components: scheduler > Affects Versions: 2.8.0 > Reporter: Karthik Kambatla > Assignee: Karthik Kambatla > Attachments: yarn-4808-1.patch, yarn-4808-2.patch > > > We have made some cosmetic changes to SchedulerNode recently. While working on YARN-4511, realized we could improve it a little more: > # Remove volatile variables - don't see the need for them being volatile > # Some methods end up doing very similar things, so consolidating them > # Renaming totalResource to capacity. YARN-4511 plans to add inflatedCapacity to include the un-utilized resources, and having two totals can be a little confusing. -- This message was sent by Atlassian JIRA (v6.3.4#6332)