You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Yong Qiao Wang (JIRA)" <ji...@apache.org> on 2015/09/10 11:30:46 UTC

[jira] [Commented] (MESOS-3406) Should not update the framework info when framework->pid != from

    [ https://issues.apache.org/jira/browse/MESOS-3406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14738489#comment-14738489 ] 

Yong Qiao Wang commented on MESOS-3406:
---------------------------------------

[~vinodkone], [~benjaminhindman], [~bmahler] and [~jieyu], any thoughts for this? Thanks!

> Should not update the framework info when framework->pid != from
> ----------------------------------------------------------------
>
>                 Key: MESOS-3406
>                 URL: https://issues.apache.org/jira/browse/MESOS-3406
>             Project: Mesos
>          Issue Type: Bug
>            Reporter: Yong Qiao Wang
>            Assignee: Yong Qiao Wang
>
> The current logic of Master::_subscribe as below:
> {code}
> if (frameworks.registered.contains(frameworkInfo.id())) {
>     framework->updateFrameworkInfo(frameworkInfo);
>     allocator->updateFramework(framework->id(), framework->info);
>     framework->reregisteredTime = Clock::now();
>     .....
>     .....
>     if (subscribe.force()) {
>         ......
>      } else if (framework->pid != from) {
>          LOG(ERROR) << "Disallowing subscription attempt of"
>                  << " framework " << *framework
>                  << " because it is not expected from " << from;
>           FrameworkErrorMessage message;
>           message.set_message("Framework failed over");
>           send(from, message);
>      } else {
>          ......
>      }
> {code}
> In case if this framework has already registered but its pid does not equals with from, Master will send a  "Framework failed over" message to framework to reject this register, but the framework info still be updated, I think this should be a bug, and in the failed register case, It should not update the framework info. 



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