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

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

Add voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • nodemanager
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            pbacsko Peter Bacsko
            pbacsko Peter Bacsko

            Dates

              Created:
              Updated:

              Slack

                Issue deployment