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 39461102A1 for ; Tue, 20 Aug 2013 01:10:52 +0000 (UTC) Received: (qmail 31942 invoked by uid 500); 20 Aug 2013 01:10:52 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 31917 invoked by uid 500); 20 Aug 2013 01:10:52 -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 31908 invoked by uid 99); 20 Aug 2013 01:10:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Aug 2013 01:10:52 +0000 Date: Tue, 20 Aug 2013 01:10:51 +0000 (UTC) From: "Omkar Vinit Joshi (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-1076) RM gets stuck with a reservation, ignoring new containers 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-1076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13744583#comment-13744583 ] Omkar Vinit Joshi commented on YARN-1076: ----------------------------------------- Hi [~maysamyabandeh] did you see this issue by code walk through? or you faced this in your cluster? related YARN-957 ? > RM gets stuck with a reservation, ignoring new containers > --------------------------------------------------------- > > Key: YARN-1076 > URL: https://issues.apache.org/jira/browse/YARN-1076 > Project: Hadoop YARN > Issue Type: Bug > Components: resourcemanager > Reporter: Maysam Yabandeh > Priority: Minor > > LeafQueue#assignContainers rejects newly available containers if #needContainers returns false: > {code:java} > if (!needContainers(application, priority, required)) { > continue; > } > {code} > When the application has already reserved all the required containers, #needContainers returns false as long as no starvation is reported: > {code:java} > return (((starvation + requiredContainers) - reservedContainers) > 0); > {code} > where starvation is computed based on the attempts on re-reserving a resource. On the other hand, a resource is re-reserved via #assignContainersOnNode only if it passed the #needContainers precondition: > {code:java} > // Do we need containers at this 'priority'? > if (!needContainers(application, priority, required)) { > continue; > } > //. > //. > //. > > // Try to schedule > CSAssignment assignment = > assignContainersOnNode(clusterResource, node, application, priority, > null); > {code} > In other words, once needContainers returns false due to a reservation, it keeps rejecting newly available resources, since no reservation is ever attempted. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira