You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Vrushali C (JIRA)" <ji...@apache.org> on 2016/08/11 15:47:20 UTC

[jira] [Updated] (YARN-5511) Log refactoring: method invocation should be replaced by variable in yarn server

     [ https://issues.apache.org/jira/browse/YARN-5511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vrushali C updated YARN-5511:
-----------------------------
    Attachment: YARN-5511.001.patch

Uploading patch v1.

Also added the check for debug level being set for that statement.

> Log refactoring: method invocation should be replaced by variable in yarn server
> --------------------------------------------------------------------------------
>
>                 Key: YARN-5511
>                 URL: https://issues.apache.org/jira/browse/YARN-5511
>             Project: Hadoop YARN
>          Issue Type: Bug
>    Affects Versions: 2.7.2
>            Reporter: Nemo Chen
>         Attachments: YARN-5511.001.patch
>
>
> Similar to the fix for HDFS-409. In file:
> hadoop-rel-release-2.7.2/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/security/NMTokenSecretManagerInNM.java
> {code:borderStyle=solid}
> ...
> ApplicationAttemptId appAttemptId = identifier.getApplicationAttemptId();
> ...
> LOG.debug("NMToken key updated for application attempt : "
>           + identifier.getApplicationAttemptId().toString());
> {code}
> In line 226, the method invocation identifier.getApplicationAttemptId().toString()) can be replaced by appAttemptId.



--
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