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 DF21E200D4C for ; Thu, 16 Nov 2017 00:34:08 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id DDB4D160BF6; Wed, 15 Nov 2017 23:34:08 +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 2F373160BF4 for ; Thu, 16 Nov 2017 00:34:08 +0100 (CET) Received: (qmail 5555 invoked by uid 500); 15 Nov 2017 23:34:07 -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 5546 invoked by uid 99); 15 Nov 2017 23:34:07 -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; Wed, 15 Nov 2017 23:34:07 +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 213E71807F8 for ; Wed, 15 Nov 2017 23:34:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id huqbT0iRmnJG for ; Wed, 15 Nov 2017 23:34:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 6BDBD5F299 for ; Wed, 15 Nov 2017 23:34:04 +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 66707E0EFE for ; Wed, 15 Nov 2017 23:34:03 +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 A422D2411F for ; Wed, 15 Nov 2017 23:34:00 +0000 (UTC) Date: Wed, 15 Nov 2017 23:34:00 +0000 (UTC) From: "Vinod Kone (JIRA)" To: issues@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MESOS-8185) Tasks can be known to the agent but unknown to the master. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 15 Nov 2017 23:34:09 -0000 [ https://issues.apache.org/jira/browse/MESOS-8185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16254446#comment-16254446 ] Vinod Kone commented on MESOS-8185: ----------------------------------- cc [~xujyan] [~megha.sharma] Is this still an issue after your changes? > Tasks can be known to the agent but unknown to the master. > ---------------------------------------------------------- > > Key: MESOS-8185 > URL: https://issues.apache.org/jira/browse/MESOS-8185 > Project: Mesos > Issue Type: Bug > Affects Versions: 1.2.0 > Reporter: Ilya Pronin > Assignee: Ilya Pronin > Labels: reliability > > Currently, when a master re-registers an agent that was marked unreachable, it shutdowns all not partition-aware frameworks on that agent. When a master re-registers an agent that is already registered, it doesn't check that all tasks from the slave's re-registration message are known to it. > It is possible that due to a transient loss of connectivity an agent may miss {{SlaveReregisteredMessage}} along with {{ShutdownFrameworkMessage}} and thus will not kill not partition-aware tasks. But the master will mark the agent as registered and will not re-add tasks that it thought will be killed. The agent may re-register again, this time successfully, before becoming marked unreachable while never having terminated tasks of not partition-aware frameworks. The master will simply forget those tasks ever existed, because it has "removed" them during the previous re-registration. > Example scenario: > # Connection from the master to the agent stops working > # Agent doesn't see pings from the master and attempts to re-register > # Master sends {{SlaveRegisteredMessage}} and {{ShutdownSlaveMessage}}, which don't get to the agent because of the connection failure. Agent is marked registered. > # Network issue resolves, connection breaks. Agent retries re-registration. > # Master thinks that the agent was registered since step (3) and just re-sends {{SlaveRegisteredMessage}}. Tasks remain running on the agent. > One of the possible solutions would be to compare the list of tasks the the already registered agent reports in {{ReregisterSlaveMessage}} and the list of tasks the master has. In this case anything that the master doesn't know about should not exist on the agent. -- This message was sent by Atlassian JIRA (v6.4.14#64029)