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 72D6C200B96 for ; Wed, 21 Sep 2016 20:19:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 71968160ADE; Wed, 21 Sep 2016 18:19:23 +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 BACB4160AE1 for ; Wed, 21 Sep 2016 20:19:22 +0200 (CEST) Received: (qmail 19663 invoked by uid 500); 21 Sep 2016 18:19: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 19370 invoked by uid 99); 21 Sep 2016 18:19:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2016 18:19:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B16312C0D57 for ; Wed, 21 Sep 2016 18:19:20 +0000 (UTC) Date: Wed, 21 Sep 2016 18:19:20 +0000 (UTC) From: "Sunil G (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-5660) Wrong audit constants are used in Get/Put of priority in RMWebService MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 21 Sep 2016 18:19:23 -0000 [ https://issues.apache.org/jira/browse/YARN-5660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15510741#comment-15510741 ] Sunil G commented on YARN-5660: ------------------------------- Hi [~naganarasimha_gr@apache.org] We need audit log for failures too, correct? If application is not found for given app id, i think we can audit log the same for tracking purpose. Do you see some issues in this line. > Wrong audit constants are used in Get/Put of priority in RMWebService > --------------------------------------------------------------------- > > Key: YARN-5660 > URL: https://issues.apache.org/jira/browse/YARN-5660 > Project: Hadoop YARN > Issue Type: Bug > Components: resourcemanager > Reporter: Rohith Sharma K S > Assignee: Rohith Sharma K S > Priority: Trivial > > In methods {{RMWebService#getAppPriority}} and {{RMWebService#updateApplicationPriority}} uses wrong audit constants for RMAuditLogger. It should be AuditConstants.UPDATE_APP_PRIORITY > {code} > RMApp app = null; > try { > app = getRMAppForAppId(appId); > } catch (NotFoundException e) { > RMAuditLogger.logFailure(userName, AuditConstants.KILL_APP_REQUEST, > "UNKNOWN", "RMWebService", > "Trying to move an absent application " + appId); > throw e; > } > {code} -- 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