You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by "Benjamin Mahler (JIRA)" <ji...@apache.org> on 2013/08/23 03:36:51 UTC

[jira] [Resolved] (MESOS-659) The Master incorrectly sends a "Framework failed over" message when the scheduler driver retries an initial failover re-registration.

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

Benjamin Mahler resolved MESOS-659.
-----------------------------------

       Resolution: Duplicate
    Fix Version/s:     (was: 0.14.0)

Ah, I had searched for "Framework failed over" so I missed it! Will close and take over that ticket.
                
> The Master incorrectly sends a "Framework failed over" message when the scheduler driver retries an initial failover re-registration.
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MESOS-659
>                 URL: https://issues.apache.org/jira/browse/MESOS-659
>             Project: Mesos
>          Issue Type: Bug
>            Reporter: Benjamin Mahler
>            Assignee: Benjamin Mahler
>
> This bug can cause unnecessary additional failovers, if say, the master is delayed processing a re-registration attempt from a scheduler.
> // Replace the scheduler for a framework with a new process ID, in the
> // event of a scheduler failover.
> void Master::failoverFramework(Framework* framework, const UPID& newPid)
> {
>   const UPID& oldPid = framework->pid;
>   /** NEED TO GUARD AGAINST newPid == oldPid FOR RETRIES! */
>   {
>     FrameworkErrorMessage message;
>     message.set_message("Framework failed over");
>     send(oldPid, message);
>   }
>   ...
> }
> Sending the FrameworkErrorMessage here always is incorrect, we should not be sending it when the scheduler driver is simply re-trying the initial failover re-registration.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira