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

Vinod Kone reassigned MESOS-6334:
---------------------------------

    Assignee:     (was: Neil Conway)

> Don't send TASK_LOST when removing an agent from the master
> -----------------------------------------------------------
>
>                 Key: MESOS-6334
>                 URL: https://issues.apache.org/jira/browse/MESOS-6334
>             Project: Mesos
>          Issue Type: Improvement
>          Components: master
>            Reporter: Neil Conway
>            Priority: Major
>              Labels: mesosphere
>
> Update this:
> {code}
>   // Transition the tasks to lost and remove them.
>   foreachkey (const FrameworkID& frameworkId, utils::copy(slave->tasks)) {
>     foreachvalue (Task* task, utils::copy(slave->tasks[frameworkId])) {
>       const StatusUpdate& update = protobuf::createStatusUpdate(
>           task->framework_id(),
>           task->slave_id(),
>           task->task_id(),
>           TASK_LOST,
>           TaskStatus::SOURCE_MASTER,
>           None(),
>           "Slave " + slave->info.hostname() + " removed: " + removalCause,
>           TaskStatus::REASON_SLAVE_REMOVED,
>           (task->has_executor_id() ?
>               Option<ExecutorID>(task->executor_id()) : None()));
>       updateTask(task, update);
>       removeTask(task);
>       Framework* framework = getFramework(frameworkId);
>       if (framework == nullptr) {
>         LOG(WARNING) << "Dropping update " << update
>                      << " for unknown framework " << frameworkId;
>       } else {
>         forward(update, UPID(), framework);
>       }
>     }
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to