Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-2301

Slave does not cleanly unregister

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • agent, master
    • None

    Description

      If a machine running the mesos slave is being rebooted, the mesos slave does a clean shutdown. It stops alls its executors, unregisters from the master and removes the symlink to the latest state.

      However, if the master is not reachable during the reboot, it will still remove the symlink to the latest state and will register with a new ID when restarted. This leads to the master waiting for the slave to come back for the configured amount if time and not marking the tasks as lost or killed. This also means, that these tasks will not be restarted by the framework (in this case Marathon), because it assumes they are still alive.

      This problem could be solved by introducing a new message `SlaveUnregisteredMessage` that gets send by the master when a slave successfully unregistered. The slav only has to wait for this message and if it doesn't receive it, it should not remove the symlink to `latest`.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              drexin Dario Rexin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: