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

container-executor: possible -1 return value of fork() is not always checked

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: nodemanager
    • Labels:
      None

      Description

      There are some places in the container-executor native, where the fork() call is not handled properly. This operation can fail with -1, but sometimes the necessary if branch is missing to validate that it's been successful.

      Also, at one location, the return value is defined as an int, not pid_t. It's better to handle this transparently and change it.

        Attachments

        1. YARN-10018-001.patch
          4 kB
          Peter Bacsko
        2. YARN-10018-001.patch
          4 kB
          Peter Bacsko
        3. YARN-10018-002.patch
          4 kB
          Peter Bacsko

          Activity

            People

            • Assignee:
              pbacsko Peter Bacsko
              Reporter:
              pbacsko Peter Bacsko
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: