You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Greg Mann (Jira)" <ji...@apache.org> on 2020/04/15 21:23:00 UTC

[jira] [Assigned] (MESOS-10118) Agent incorrectly handles draining when empty

     [ https://issues.apache.org/jira/browse/MESOS-10118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Greg Mann reassigned MESOS-10118:
---------------------------------

    Assignee: Greg Mann

> Agent incorrectly handles draining when empty
> ---------------------------------------------
>
>                 Key: MESOS-10118
>                 URL: https://issues.apache.org/jira/browse/MESOS-10118
>             Project: Mesos
>          Issue Type: Bug
>          Components: agent
>    Affects Versions: 1.9.0
>            Reporter: Greg Mann
>            Assignee: Greg Mann
>            Priority: Major
>
> When the agent receives a {{DrainSlaveMessage}} and does not have any tasks or operations, it writes the {{DrainConfig}} to disk and is then implicitly stuck in a "draining" state indefinitely. For example, if an agent reregistration is triggered at such a time, the master may think the agent is operating normally and send a task to it, at which point the task will fail because the agent thinks it's draining (see this test for an example: https://reviews.apache.org/r/72364/).
> If the agent receives a {{DrainSlaveMessage}} when it has no tasks or operations, it should avoid writing any {{DrainConfig}} to disk so that it immediately "transitions" into the already-drained state.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)