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 3E05B200BC0 for ; Tue, 15 Nov 2016 16:59:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3CB22160B03; Tue, 15 Nov 2016 15:59:01 +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 8433C160AF2 for ; Tue, 15 Nov 2016 16:59:00 +0100 (CET) Received: (qmail 21001 invoked by uid 500); 15 Nov 2016 15:58:59 -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 20988 invoked by uid 99); 15 Nov 2016 15:58:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2016 15:58:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 754672C4C73 for ; Tue, 15 Nov 2016 15:58:59 +0000 (UTC) Date: Tue, 15 Nov 2016 15:58:59 +0000 (UTC) From: "Rohith Sharma K S (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-5865) Retrospect updateApplicationPriority api to handle state store exception in align with YARN-5611 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 15 Nov 2016 15:59:01 -0000 [ https://issues.apache.org/jira/browse/YARN-5865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15667503#comment-15667503 ] Rohith Sharma K S commented on YARN-5865: ----------------------------------------- some more comments on the patch AppInfo.java # After current patch change, you can remove app.getApplicationSubmissionContext(); RMAppManager.java # line 401, 402, 403 has not changed. Looks like format has changed. Can you revert this ? # line 571, can you check if (app.isAppInCompletedStates()) immediately after holding applicationId lock? It is not an issue, just not to create future object. # line 580, can you flip code for checking priority equals and do futures.get like below? {code} if (app.getApplicationPriority().equals(appPriority)) { return; } Futures.get(future, YarnException.class); {code} RMApp.java # Java doc for API isAppInCompletedStates is repeated i.e *completed/completed states*. It should be completing/completed. YarnScheduler.java # Return type of API has changed from void to Priority. I am not sure does it breaks. cc:/[~jianhe] > Retrospect updateApplicationPriority api to handle state store exception in align with YARN-5611 > ------------------------------------------------------------------------------------------------ > > Key: YARN-5865 > URL: https://issues.apache.org/jira/browse/YARN-5865 > Project: Hadoop YARN > Issue Type: Sub-task > Reporter: Sunil G > Assignee: Sunil G > Attachments: YARN-5865.0001.patch, YARN-5865.0002.patch, YARN-5865.0003.patch, YARN-5865.0004.patch, YARN-5865.0005.patch > > > Post YARN-5611, revisit dynamic update of application priority logic with respect to state store error handling. -- 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