Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-8472 YARN Container Phase 2
  3. YARN-8744

In some cases docker kill is used to stop non-privileged containers instead of sending the signal directly

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • None
    • None
    • None

    Description

      With YARN-8706, stopping docker containers was achieved by
      1. parsing the user specified STOPSIGNAL via docker inspect
      2. executing docker kill --signal=<STOPSIGNAL>

      Quoting Eric Badger

      Additionally, for non-privileged containers, we don't need to call docker kill. Instead, we can follow the code in handleContainerKill() and send the signal directly. I think this code could probably be combined, since at this point handleContainerKill() and handleContainerStop() will be doing the same thing. The only difference is that the STOPSIGNAL will be used for the stop.

      To achieve the above, we need native code that accepts the name of the signal rather than the value (number) of the signal.

      Attachments

        Issue Links

        Activity

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

          People

            csingh Chandni Singh
            csingh Chandni Singh
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment