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




src/master/master.hpp (line 2527)
<https://reviews.apache.org/r/53896/#comment228462>

    I would kill this helper in favor of checking state directly. The reason 
being, as we add more and more states having such helpers seems redundant.



src/master/master.hpp (line 2545)
<https://reviews.apache.org/r/53896/#comment228463>

    can you convert this into ACTIVE and INACTIVE states? if you want to do 
that later, please add a TODO (and maybe a ticket to track).



src/master/master.cpp (line 1956)
<https://reviews.apache.org/r/53896/#comment228465>

    as noted above, just do
    
    `framework->state != CONNECTED`
    
    here and below.


- Vinod Kone


On Nov. 18, 2016, 7:21 p.m., Neil Conway wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/53896/
> -----------------------------------------------------------
> 
> (Updated Nov. 18, 2016, 7:21 p.m.)
> 
> 
> Review request for mesos and Vinod Kone.
> 
> 
> Bugs: MESOS-6419
>     https://issues.apache.org/jira/browse/MESOS-6419
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Previously, the master used a bool to track whether a given framework is
> connected. This commit adjusts the master to use an enum instead. The
> enum currently only has two values, CONNECTED and DISCONNECTED, but an
> additional value (RECOVERED) will be introduced shortly.
> 
> 
> Diffs
> -----
> 
>   src/master/http.cpp 90cbed1ba411e18906fe9c26bc14576a26d1b7b9 
>   src/master/master.hpp 7829f3f5f6125714b2fa48fe7c2813c26d14e26d 
>   src/master/master.cpp 7ed1d259f02991bcd1389d0529a4bc97b0aa0245 
>   src/master/quota_handler.cpp 5578663f26d9b737499dc4f5a286c34c37645442 
> 
> Diff: https://reviews.apache.org/r/53896/diff/
> 
> 
> Testing
> -------
> 
> `make check`
> 
> 
> Thanks,
> 
> Neil Conway
> 
>

Reply via email to