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 B9189200BBC for ; Sun, 30 Oct 2016 06:13:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B022F160B00; Sun, 30 Oct 2016 05:13:00 +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 024D5160AF4 for ; Sun, 30 Oct 2016 06:12:59 +0100 (CET) Received: (qmail 64885 invoked by uid 500); 30 Oct 2016 05:12:58 -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 64874 invoked by uid 99); 30 Oct 2016 05:12:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Oct 2016 05:12:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 71A712C1F56 for ; Sun, 30 Oct 2016 05:12:58 +0000 (UTC) Date: Sun, 30 Oct 2016 05:12:58 +0000 (UTC) From: "Bibin A Chundatt (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (YARN-5802) Application priority updates add pending apps to running ordering policy MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 30 Oct 2016 05:13:00 -0000 [ https://issues.apache.org/jira/browse/YARN-5802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15618673#comment-15618673 ] Bibin A Chundatt edited comment on YARN-5802 at 10/30/16 5:12 AM: ------------------------------------------------------------------ [~sunilg] Currently only the for {{orderingPolicy}} update is done during priority update. For {{pendingOrderingPolicy}} also IIUC should remove and add. To update ordering. was (Author: bibinchundatt): [~sunilg] Shouldnt we be removing and add from pending also?? > Application priority updates add pending apps to running ordering policy > ------------------------------------------------------------------------ > > Key: YARN-5802 > URL: https://issues.apache.org/jira/browse/YARN-5802 > Project: Hadoop YARN > Issue Type: Bug > Reporter: Bibin A Chundatt > Assignee: Bibin A Chundatt > Priority: Critical > Attachments: YARN-5802.0001.patch > > > {{LeafQueue#updateApplicationPriority}} > {code} > getOrderingPolicy().removeSchedulableEntity(attempt); > // Update new priority in SchedulerApplication > attempt.setPriority(newAppPriority); > getOrderingPolicy().addSchedulableEntity(attempt); > {code} > We should add again to ordering policy only when attempt available in first case.Else during application attempt removal will try to iterate on killed application still available in pending Ordering policy.Which can cause RM to crash. -- 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