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

Wangda Tan commented on YARN-9010:
----------------------------------

Committed to trunk, thanks [~tangzhankun].

> Fix the incorrect trailing slash deletion in constructor method of 
> CGroupsHandlerImpl
> -------------------------------------------------------------------------------------
>
>                 Key: YARN-9010
>                 URL: https://issues.apache.org/jira/browse/YARN-9010
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Zhankun Tang
>            Assignee: Zhankun Tang
>            Priority: Major
>             Fix For: 3.3.0
>
>         Attachments: YARN-9010-trunk-001.patch
>
>
> In constructor method of CGroupsHandlerImpl:
> {code:java}
> this.cGroupPrefix = conf.get(YarnConfiguration.
>  NM_LINUX_CONTAINER_CGROUPS_HIERARCHY, "/hadoop-yarn")
>  .replaceAll("^/", "").replaceAll("$/", "");{code}
> The "$/" regex expression is not working. And "^/" for leading slash handling 
> is also not good enough.



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

Reply via email to