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

Vinod Kone updated MESOS-3055:
------------------------------
    Target Version/s: 0.23.0
       Fix Version/s:     (was: 0.23.0)

> Master doesn't properly handle SUBSCRIBE call
> ---------------------------------------------
>
>                 Key: MESOS-3055
>                 URL: https://issues.apache.org/jira/browse/MESOS-3055
>             Project: Mesos
>          Issue Type: Bug
>    Affects Versions: 0.23.0
>            Reporter: Vinod Kone
>            Assignee: Vinod Kone
>
> Master::subscribe() incorrectly handles re-registration. It handles it as a 
> registration request (not "re-registration") because of a bug in the if loop 
> (should have been !frameworkInfo.has_id()).
> {code}
> void Master::subscribe(
>     const UPID& from,
>     const scheduler::Call::Subscribe& subscribe)
> {
>   const FrameworkInfo& frameworkInfo = subscribe.framework_info();
>   // TODO(vinod): Instead of calling '(re-)registerFramework()' from
>   // here refactor those methods to call 'subscribe()'.
>   if (frameworkInfo.has_id() || frameworkInfo.id() == "") {
>     registerFramework(from, frameworkInfo);
>   } else {
>     reregisterFramework(from, frameworkInfo, subscribe.force());
>   }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to