Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1BFF0200D01 for ; Fri, 22 Sep 2017 09:27:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1A7ED1609BE; Fri, 22 Sep 2017 07:27:11 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 60BD31609A7 for ; Fri, 22 Sep 2017 09:27:10 +0200 (CEST) Received: (qmail 41579 invoked by uid 500); 22 Sep 2017 07:27:09 -0000 Mailing-List: contact user-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@mesos.apache.org Delivered-To: mailing list user@mesos.apache.org Received: (qmail 41559 invoked by uid 99); 22 Sep 2017 07:27:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Sep 2017 07:27:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 6FA49D4EC5; Fri, 22 Sep 2017 07:27:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.401 X-Spam-Level: X-Spam-Status: No, score=-2.401 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.8, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id udJzm5HymOZ8; Fri, 22 Sep 2017 07:27:07 +0000 (UTC) Received: from mail-pf0-f181.google.com (mail-pf0-f181.google.com [209.85.192.181]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id E75E360D99; Fri, 22 Sep 2017 07:27:06 +0000 (UTC) Received: by mail-pf0-f181.google.com with SMTP id m63so178122pfk.7; Fri, 22 Sep 2017 00:27:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=jJ0fLp6uORrh1uAzX0Fa1OgZbm/NwPF738xJdiKORc0=; b=Jbdgvj3zKaaaJQTYM1QmQ+zui+5RXi4FABtD+HhZsJURojT9T/ks8qfGesn9Xrp36X zpmlJ5GCXwTUKhTnv47qOn+2qEMKZqMrQ9QO0cXN1Xh/EX73QdFzP2P+7fkCT6h/LsTt CfOuehOYbf4WGIAHdpffxu+yPQHrXNkTEzCbt9fbjtOAK7Q1SiOdRxfnqukxMk0aqC5Z 366KJFyNvnprCSPr6GB0tz0JktJZ2b/EeDx5yvxc1q+C6CLXZE046f7j9gLJ6/hhf6tK A7DWngG6ZyfFzgd166T5WRPjBQn2yKfyqlYQVi3fnJXrDbnNO84lb2EabKYpmGmOJXAv h5zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=jJ0fLp6uORrh1uAzX0Fa1OgZbm/NwPF738xJdiKORc0=; b=eUNScF5AcY1pymBztKym9VP60DMNy+rdJu+h5L2UGw3cWXVMrMy51xn7fccxe8VkZA Is9KF5OvHOnBN/QrzvRGmd69pyK/F/myyLwpNodd+BxV+nZy7wjo1zKRnPjoQK7Os/YW hx3Y5rQGStgJuPNDCo+c5JaWKZVH+XeVm/+oRhiA+zDsupd2XytgiLJuutjAarV2pAz7 GSEFugjJWNGN8M5YtkAdCTyCz4ui7J1ttnhYJgr0NL2p/iOTbcsur954xl3mzrHH1/08 Sz2RoRrH2tDK4jtgzNM93bsOfaCj3vnO+Cm5GOVKz6NEogLN1zqsf7nrWEkV1p+dCifT 9cRQ== X-Gm-Message-State: AHPjjUhr288+KC6D/16etYZzpcfXV9B7zrpbC5rMr91/U5mllZqPhyGh m2xvqk1vhSbpLKeeBWY/Ve9ArQCX X-Google-Smtp-Source: AOwi7QARDlOIYEv7j/k9W4ULmpo2EP9CKTy2GBiPAQhJ4ayCp2RBo6tnhf6ePN2n2zRJiJHaDzLvaA== X-Received: by 10.84.204.133 with SMTP id b5mr8086225ple.149.1506065225607; Fri, 22 Sep 2017 00:27:05 -0700 (PDT) Received: from [192.168.0.108] (c-76-102-54-81.hsd1.ca.comcast.net. [76.102.54.81]) by smtp.gmail.com with ESMTPSA id c62sm5571160pfl.84.2017.09.22.00.27.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Sep 2017 00:27:04 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Collect feedbacks on TASK_FINISHED From: James Peach In-Reply-To: Date: Fri, 22 Sep 2017 00:27:11 -0700 Cc: user Content-Transfer-Encoding: quoted-printable Message-Id: References: To: dev X-Mailer: Apple Mail (2.3273) archived-at: Fri, 22 Sep 2017 07:27:11 -0000 > On Sep 21, 2017, at 10:12 PM, Vinod Kone wrote: >=20 > I think it makes sense for `TASK_KILLED` to be sent in response to a = KILL > call irrespective of the exit status. IIRC, that was the original = intention. Those are the semantics we implement and expect in our scheduler and = executor. The only time we emit TASK_KILLED is in response to a = scheduler kill, and a scheduler kill always ends in a TASK_KILLED. The rationale for this is 1. We want to distinguish whether the task finished for its own reasons = (ie. not due to a scheduler kill) 2. The scheduler told us to kill the task and we did, so it was = TASK_KILLED (irrespective of any exit status) > On Thu, Sep 21, 2017 at 8:20 PM, Qian Zhang = wrote: >=20 >> Hi Folks, >>=20 >> I'd like to collect the feedbacks on the task state TASK_FINISHED. >> Currently the default and command executor will always send = TASK_FINISHED >> as long as the exit code of task is 0, this cause an issue: when = scheduler >> initiates a kill task, the executor will send SIGTERM to the task = first, >> and if the task handles SIGTERM gracefully and exit with 0, the = executor >> will send TASK_FINISHED for that task, so we will see the task state >> transition: TASK_KILLING -> TASK_FINISHED. >>=20 >> This seems incorrect because we thought it should be TASK_KILLING -> >> TASK_KILLED, that's why we filed a ticket MESOS-7975 >> for it. However, I = am >> not very sure if it is really a bug, because I think it depends on = how we >> define the meaning of TASK_FINISHED, if it means the task is = terminated >> successfully on its own without external interference, then I think = it does >> not make sense for scheduler to receive a TASK_KILLING followed by a >> TASK_FINISHED since there is indeed an external interference (killing = task >> is initiated by scheduler). However, if TASK_FINISHED means the task = is >> terminated successfully for whatever reason (no matter it is killed = or >> terminated on its own), then I think it is OK to receive a = TASK_KILLING >> followed by a TASK_FINISHED. >>=20 >> Please let us know your thoughts on this issue, thanks! >>=20 >>=20 >> Regards, >> Qian Zhang >>=20