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

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      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

              People

              • Assignee:
                csingh Chandni Singh
                Reporter:
                csingh Chandni Singh
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: