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 8CDBF1143C for ; Tue, 9 Sep 2014 05:22:29 +0000 (UTC) Received: (qmail 82865 invoked by uid 500); 9 Sep 2014 05:22:29 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 82825 invoked by uid 500); 9 Sep 2014 05:22:29 -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 82814 invoked by uid 99); 9 Sep 2014 05:22:29 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Sep 2014 05:22:29 +0000 Date: Tue, 9 Sep 2014 05:22:29 +0000 (UTC) From: "Wangda Tan (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-2056) Disable preemption at Queue level 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-2056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14126621#comment-14126621 ] Wangda Tan commented on YARN-2056: ---------------------------------- Hi [~eepayne], Thanks for update the patch. Sorry for late, I've jus take a look at your patch, I think the new added test looks good to me, only a couple of minor comments, 1. {code} + // verify capacity taken from queueB, not queueE despite queueE being far + // over its absolute guaranteed capacity {code} queueE isn't preempted because its parent queue still under satisfied, as you know, it's internal mechanism of preemption policy. I think it's better to add it to the comment, can save some time when people looking at the test. 2. {code} + ApplicationAttemptId expectedAttemptOnQueueB = + ApplicationAttemptId.newInstance( + appA.getApplicationId(), appA.getAttemptId()); + assertTrue("appA should be running on queueB", + mCS.getAppsInQueue("queueB").contains(expectedAttemptOnQueueB)); {code} It's better to remove such assertion, it's unrelated to preemption policy. I guess you added it here because you want to check if mockQueue/mockApp is correct. I suggest you can add a separated test to verify mock nest queue/app. Also some similar checks on queueC/E 3. failed test TestCapacitySchedulerQueueACLs should not related to this change, but it's better to re-kick jenkins to make sure it. Thanks, Wangda > Disable preemption at Queue level > --------------------------------- > > Key: YARN-2056 > URL: https://issues.apache.org/jira/browse/YARN-2056 > Project: Hadoop YARN > Issue Type: Sub-task > Components: resourcemanager > Affects Versions: 2.4.0 > Reporter: Mayank Bansal > Assignee: Eric Payne > Attachments: YARN-2056.201408202039.txt, YARN-2056.201408260128.txt, YARN-2056.201408310117.txt, YARN-2056.201409022208.txt > > > We need to be able to disable preemption at individual queue level -- This message was sent by Atlassian JIRA (v6.3.4#6332)