hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhankun Tang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-8918) [Submarine] Correct method usage of str.subString in CliUtils
Date Tue, 04 Dec 2018 07:59:00 GMT

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

Zhankun Tang commented on YARN-8918:
------------------------------------

[~sunilg] , it's a minor change. not important.

> [Submarine] Correct method usage of str.subString in CliUtils
> -------------------------------------------------------------
>
>                 Key: YARN-8918
>                 URL: https://issues.apache.org/jira/browse/YARN-8918
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Zhankun Tang
>            Assignee: Zhankun Tang
>            Priority: Minor
>             Fix For: 3.3.0, 3.2.1
>
>         Attachments: YARN-8918-trunk.001.patch, YARN-8918-trunk.002.patch, YARN-8918-trunk.003.patch
>
>
> In CliUtils.java (line 74), there's uncorrect code block,:
> {code:java}
> if (resourcesStr.endsWith("]")) {
>  resourcesStr = resourcesStr.substring(0, resourcesStr.length());
> }{code}
> Above if block will execute "resourceStr = resourceStr". It should be "length() -1"



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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