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 B446B200B74 for ; Thu, 1 Sep 2016 21:59:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B2D04160AA8; Thu, 1 Sep 2016 19:59: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 06664160AB5 for ; Thu, 1 Sep 2016 21:59:21 +0200 (CEST) Received: (qmail 22867 invoked by uid 500); 1 Sep 2016 19:59:21 -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 22842 invoked by uid 99); 1 Sep 2016 19:59:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Sep 2016 19:59:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 075DE2C1B7B for ; Thu, 1 Sep 2016 19:59:21 +0000 (UTC) Date: Thu, 1 Sep 2016 19:59:21 +0000 (UTC) From: "Daniel Templeton (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (YARN-5613) Fair Scheduler can assign containers from blacklisted nodes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 01 Sep 2016 19:59:22 -0000 [ https://issues.apache.org/jira/browse/YARN-5613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Templeton updated YARN-5613: ----------------------------------- Attachment: YARN-5613.001.patch The issue shows up when running {{TestAMRMClient.testAMRMClientWithBlacklist()}} using fair scheduler as the default. The error is: {noformat} expected:<0> but was:<1> Stacktrace java.lang.AssertionError: expected:<0> but was:<1> 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.junit.Assert.assertEquals(Assert.java:542) at org.apache.hadoop.yarn.client.api.impl.TestAMRMClient.testAllocationWithBlacklist(TestAMRMClient.java:537) Standard Output {noformat} This patch appears to resolve the issue, but I'm still testing. > Fair Scheduler can assign containers from blacklisted nodes > ----------------------------------------------------------- > > Key: YARN-5613 > URL: https://issues.apache.org/jira/browse/YARN-5613 > Project: Hadoop YARN > Issue Type: Bug > Components: fairscheduler > Affects Versions: 2.8.0 > Reporter: Daniel Templeton > Assignee: Daniel Templeton > Attachments: YARN-5613.001.patch > > > The {{FairScheduler.allocate()}} makes its resource request before it updates the blacklist. If the scheduler processes the resource request before the allocating thread updates the blacklist, the scheduler can assign containers that are on nodes in the blacklist. -- 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