> On Jan. 20, 2017, 7:30 p.m., Michael Park wrote:
> > src/master/master.hpp, lines 2475-2516
> > <https://reviews.apache.org/r/55271/diff/13/?file=1610797#file1610797line2475>
> >
> >     We set the `validationError` to `None` just above, so this should 
> > always be `true`. It looks to me like this used to be a loop?
> >     
> >     It looks like this could be:
> >     
> >     ```cpp
> >     if (protobuf::frameworkHasCapability(
> >             info, FrameworkInfo::Capability::MULTI_ROLE) ||
> >         protobuf::frameworkHasCapability(
> >             source, FrameworkInfo::Capability::MULTI_ROLE)) {
> >       // ...
> >       
> >       if (oldRoles != newRoles) {
> >         return Error(...);
> >       }
> >     }
> >     ```
> 
> Benjamin Bannier wrote:
>     This was supposed to introduce a pattern for when more validation 
> branches would be added; agree it is overkill ATM, and potentially not even 
> that useful in the future, removed.

By `return Error(...);` I was also suggesting to remove `Option<Error> 
validationError = None();` entirely.


- Michael


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/55271/#review162535
-----------------------------------------------------------


On Jan. 21, 2017, 4:39 a.m., Benjamin Bannier wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/55271/
> -----------------------------------------------------------
> 
> (Updated Jan. 21, 2017, 4:39 a.m.)
> 
> 
> Review request for mesos, Benjamin Mahler, Jay Guo, Guangya Liu, and Michael 
> Park.
> 
> 
> Bugs: MESOS-6631
>     https://issues.apache.org/jira/browse/MESOS-6631
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> We currently do not allow `MULTI_ROLE` frameworks to change their
> roles. This restriction will be lifted later.
> 
> 
> Diffs
> -----
> 
>   src/master/master.hpp 8e8a9037af11cf95961b6498540a0fd486ed091b 
>   src/tests/master_validation_tests.cpp 
> a63178139a5283d6a3fcbe60c271dab1914e5da9 
> 
> Diff: https://reviews.apache.org/r/55271/diff/
> 
> 
> Testing
> -------
> 
> Tested on various Linux configurations in internal CI.
> 
> 
> Thanks,
> 
> Benjamin Bannier
> 
>

Reply via email to