Return-Path: X-Original-To: apmail-mesos-issues-archive@minotaur.apache.org Delivered-To: apmail-mesos-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 583C917221 for ; Thu, 9 Oct 2014 21:39:35 +0000 (UTC) Received: (qmail 48619 invoked by uid 500); 9 Oct 2014 21:39:35 -0000 Delivered-To: apmail-mesos-issues-archive@mesos.apache.org Received: (qmail 48589 invoked by uid 500); 9 Oct 2014 21:39:35 -0000 Mailing-List: contact issues-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list issues@mesos.apache.org Received: (qmail 48579 invoked by uid 99); 9 Oct 2014 21:39:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Oct 2014 21:39:35 +0000 Date: Thu, 9 Oct 2014 21:39:35 +0000 (UTC) From: "Ian Downes (JIRA)" To: issues@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MESOS-1871) Sending SIGTERM to a task command may render it orphaned MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MESOS-1871?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1416= 5801#comment-14165801 ]=20 Ian Downes commented on MESOS-1871: ----------------------------------- Correct. The LinuxLauncher does not use os::killtree(); it signals all pids= in the freezer cgroup. > Sending SIGTERM to a task command may render it orphaned > -------------------------------------------------------- > > Key: MESOS-1871 > URL: https://issues.apache.org/jira/browse/MESOS-1871 > Project: Mesos > Issue Type: Bug > Components: slave > Reporter: Alexander Rukletsov > Assignee: Alexander Rukletsov > > {{CommandExecutor}} launches tasks wrapping them into {{sh -c}}. That mea= ns signals are sent to the top process=E2=80=94that is {{sh -c}}=E2=80=94an= d not to the task directly. Though {{SIGTERM}} is propagated by {{sh -c}} d= own the process tree, if the task is unresponsive to {{SIGTERM}}, {{sh -c}}= terminates reporting success to the {{CommandExecutor}}, rendering the tas= k detached from the parent process and still running. Because the {{Command= Executor}} thinks the command terminated normally, its OS process exits nor= mally and may not trigger containerizer's escalation which destroys cgroups= . > Here is the test related to the first part: [https://gist.github.com/rukl= etsov/68259dfb02421813f9e6]. > Here is the test related to the second part: [https://gist.github.com/ruk= letsov/3f19ecc7389fa51e65c0]. -- This message was sent by Atlassian JIRA (v6.3.4#6332)