From issues-return-46258-archive-asf-public=cust-asf.ponee.io@mesos.apache.org Tue Jan 30 16:39:09 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id ACE5318061A for ; Tue, 30 Jan 2018 16:39:09 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 9C414160C53; Tue, 30 Jan 2018 15:39:09 +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 E564D160C42 for ; Tue, 30 Jan 2018 16:39:08 +0100 (CET) Received: (qmail 73970 invoked by uid 500); 30 Jan 2018 15:39:08 -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 73961 invoked by uid 99); 30 Jan 2018 15:39:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jan 2018 15:39:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id ABEAA180461 for ; Tue, 30 Jan 2018 15:39:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id JHRwjz1yX__f for ; Tue, 30 Jan 2018 15:39:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id CC6825F19D for ; Tue, 30 Jan 2018 15:39:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 320C7E021A for ; Tue, 30 Jan 2018 15:39:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3303A24102 for ; Tue, 30 Jan 2018 15:39:00 +0000 (UTC) Date: Tue, 30 Jan 2018 15:39:00 +0000 (UTC) From: "Qian Zhang (JIRA)" To: issues@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MESOS-8125) Agent should properly handle recovering an executor when its pid is reused 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-8125?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1634= 5240#comment-16345240 ]=20 Qian Zhang commented on MESOS-8125: ----------------------------------- I have another proposal:=C2=A0In `DockerContainerizerProcess::_recover`, tr= y to connect to the executor with a TCP connection, if succeeds, reap the e= xecutor process, otherwise, set `container->status` to `None()`. Here is RR:=C2=A0https://reviews.apache.org/r/65382/ > Agent should properly handle recovering an executor when its pid is reuse= d > -------------------------------------------------------------------------= - > > Key: MESOS-8125 > URL: https://issues.apache.org/jira/browse/MESOS-8125 > Project: Mesos > Issue Type: Bug > Reporter: Gast=C3=B3n Kleiman > Assignee: Qian Zhang > Priority: Critical > > Here's how to reproduce this issue: > # Start a task using the Docker containerizer (the same will probably hap= pen with the command executor). > # Stop the corresponding Mesos agent while the task is running. > # Change the executor's checkpointed forked pid, which is located in the = meta directory, e.g., {{/var/lib/mesos/slave/meta/slaves/latest/frameworks/= 19faf6e0-3917-48ab-8b8e-97ec4f9ed41e-0001/executors/foo.13faee90-b5f0-11e7-= 8032-e607d2b4348c/runs/latest/pids/forked.pid}}. I used pid 2, which is nor= mally used by {{kthreadd}}. > # Reboot the host -- This message was sent by Atlassian JIRA (v7.6.3#76005)