[ https://issues.apache.org/jira/browse/YARN-9078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16707574#comment-16707574 ]
Wangda Tan commented on YARN-9078: ---------------------------------- [~tangzhankun], I'm wondering if {code} 82 if (resourcesStr.startsWith("[")) { 83 resourcesStr = resourcesStr.substring(1); 84 } 85 if (resourcesStr.endsWith("]")) { 86 resourcesStr = resourcesStr.substring(0, resourcesStr.length() - 1); 87 } {code} Should be removed. > [Submarine] Clean up the code of CliUtils#parseResourcesString > -------------------------------------------------------------- > > Key: YARN-9078 > URL: https://issues.apache.org/jira/browse/YARN-9078 > Project: Hadoop YARN > Issue Type: Sub-task > Reporter: Zhankun Tang > Assignee: Zhankun Tang > Priority: Minor > Attachments: YARN-9078-trunk.001.patch > > > Some minor changes to clean up the CliUtils#parseResourcesString for better > readability. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org