Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-9010

Fix the incorrect trailing slash deletion in constructor method of CGroupsHandlerImpl

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0
    • None
    • None
    • Reviewed

    Description

      In constructor method of CGroupsHandlerImpl:

      this.cGroupPrefix = conf.get(YarnConfiguration.
       NM_LINUX_CONTAINER_CGROUPS_HIERARCHY, "/hadoop-yarn")
       .replaceAll("^/", "").replaceAll("$/", "");

      The "$/" regex expression is not working. And "^/" for leading slash handling is also not good enough.

      Attachments

        1. YARN-9010-trunk-001.patch
          4 kB
          Zhankun Tang

        Activity

          People

            tangzhankun Zhankun Tang
            tangzhankun Zhankun Tang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: