Github user xujyan commented on a diff in the pull request:
https://github.com/apache/mesos/pull/279#discussion_r179548772
--- Diff: src/master/master.cpp ---
@@ -10046,6 +10060,21 @@ void Master::__removeSlave(
unreachable = false;
newTaskState = TASK_GONE_BY_OPERATOR;
newTaskReason = TaskStatus::REASON_SLAVE_REMOVED_BY_OPERATOR;
+ } else {
--- End diff --
Can this be done in `Master::removeTask()`?---
