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

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: