Benjamin Mahler created MESOS-6940: -------------------------------------- Summary: Do not send offers to MULTI_ROLE schedulers if agent does not have MULTI_ROLE capability. Key: MESOS-6940 URL: https://issues.apache.org/jira/browse/MESOS-6940 Project: Mesos Issue Type: Task Components: allocation, master Reporter: Benjamin Mahler
Old agents that do not have the MULTI_ROLE capability cannot correctly receive tasks from schedulers that have the MULTI_ROLE capability *and are using multiple roles*. In this case, we should not send the offer to the scheduler, rather than sending an offer but rejecting the scheduler's operations. Note also that since we allow a single role scheduler to upgrade into having the MULTI_ROLE capability (use of the {{FrameworkInfo.roles}} field) so long as they continue to use a single role (in phase 1 of multi-role support the roles cannot be changed), we could continue sending offers if the scheduler is MULTI_ROLE capable but only uses a single role. In phase 2 of multi-role support, we cannot safely allow a MULTI_ROLE scheduler to receive resources from a non-MULTI_ROLE agent, so it seems we should simply disallow MULTI_ROLE schedulers from receiving offers from non-MULTI_ROLE agents, regardless of how many roles the scheduler is using. -- This message was sent by Atlassian JIRA (v6.3.4#6332)