Greg Mann created MESOS-10118:
---------------------------------
Summary: 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
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)