hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Templeton (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-6073) Misuse of format specifier in Preconditions.checkArgument
Date Tue, 10 Jan 2017 05:57:58 GMT

    [ https://issues.apache.org/jira/browse/YARN-6073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15814006#comment-15814006
] 

Daniel Templeton commented on YARN-6073:
----------------------------------------

Patch looks good to me.  +1

> Misuse of format specifier in Preconditions.checkArgument
> ---------------------------------------------------------
>
>                 Key: YARN-6073
>                 URL: https://issues.apache.org/jira/browse/YARN-6073
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Yongjun Zhang
>            Assignee: Yuanbo Liu
>            Priority: Trivial
>         Attachments: YARN-6073.001.patch
>
>
> RMAdminCLI.java
> {code}
>  int nLabels = map.get(nodeId).size();
>       Preconditions.checkArgument(nLabels <= 1, "%d labels specified on host=%s"
>           + ", please note that we do not support specifying multiple"
>           + " labels on a single host for now.", nLabels, nodeIdStr);
> {code}
> The {{%d}} should be replaced with {{%s}}, per
> https://google.github.io/guava/releases/19.0/api/docs/com/google/common/base/Preconditions.html



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


Mime
View raw message