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 40179200C26 for ; Sat, 25 Feb 2017 16:53:48 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3EB98160B5D; Sat, 25 Feb 2017 15:53:48 +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 89B57160B5B for ; Sat, 25 Feb 2017 16:53:47 +0100 (CET) Received: (qmail 25053 invoked by uid 500); 25 Feb 2017 15:53:46 -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 25042 invoked by uid 99); 25 Feb 2017 15:53:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Feb 2017 15:53:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 305E8C0744 for ; Sat, 25 Feb 2017 15:53:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.547 X-Spam-Level: X-Spam-Status: No, score=-1.547 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-2.999, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id mSp6Kio2bsgJ for ; Sat, 25 Feb 2017 15:53:45 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 14A9B5FC3C for ; Sat, 25 Feb 2017 15:53:45 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 71F92E05EE for ; Sat, 25 Feb 2017 15:53:44 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1328E24134 for ; Sat, 25 Feb 2017 15:53:44 +0000 (UTC) Date: Sat, 25 Feb 2017 15:53:44 +0000 (UTC) From: "Karthik Kambatla (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-6215) TestFairSchedulerPreemption.testPreemptionBetweenNonSiblingQueues fails in trunk MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 25 Feb 2017 15:53:48 -0000 [ https://issues.apache.org/jira/browse/YARN-6215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15884290#comment-15884290 ] Karthik Kambatla commented on YARN-6215: ---------------------------------------- Since the scheduler state is transient and the update thread runs only so often, it is hard to ensure that containers are not preempted by mistake. That said, you are right about not being worse than before. I guess it is okay to start with the readLock and optimize the locking later if need be. Comments on the patch: # {{lock()}} should be called outside the try-block # Can we add a comment capturing why we need to lock() here. Maybe, something along the lines of: "Hold the scheduler readlock so this is not concurrent with the update thread." # {{FairScheduler.getSchedulerReadLock}} can be package-private. > TestFairSchedulerPreemption.testPreemptionBetweenNonSiblingQueues fails in trunk > -------------------------------------------------------------------------------- > > Key: YARN-6215 > URL: https://issues.apache.org/jira/browse/YARN-6215 > Project: Hadoop YARN > Issue Type: Sub-task > Components: fairscheduler, test > Reporter: Sunil G > Assignee: Tao Jie > Attachments: YARN-6215.001.patch > > > *Error Message* > Incorrect number of containers on the greedy app expected:<4> but was:<8> > Failed test case [link|https://builds.apache.org/job/PreCommit-YARN-Build/15038/testReport/org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair/TestFairSchedulerPreemption/testPreemptionBetweenNonSiblingQueues_FairSharePreemptionWithDRF_/] > *Stacktrace* > {noformat} > java.lang.AssertionError: Incorrect number of containers on the greedy app expected:<4> but was:<8> > at org.junit.Assert.fail(Assert.java:88) > at org.junit.Assert.failNotEquals(Assert.java:743) > at org.junit.Assert.assertEquals(Assert.java:118) > at org.junit.Assert.assertEquals(Assert.java:555) > at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.TestFairSchedulerPreemption.verifyPreemption(TestFairSchedulerPreemption.java:282) > at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.TestFairSchedulerPreemption.testPreemptionBetweenNonSiblingQueues(TestFairSchedulerPreemption.java:323) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org