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



include/mesos/scheduler.hpp
<https://reviews.apache.org/r/27315/#comment100173>

    It would be more precise to use an Optional here rather than write the 
rules/semantics (if I'm reading the rest of the code correctly) into a pointer.
    
    Also means we don't have to manually clean up in the destructor.



src/sched/sched.cpp
<https://reviews.apache.org/r/27315/#comment100167>

    maxBackoff is never set if duration.isNone.



src/sched/sched.cpp
<https://reviews.apache.org/r/27315/#comment100169>

    It would be nice to use <random> here (The headers at least are around in 
gcc 4.4). 
    
    Doing this sort of math creates significantly biased randon numbers.



src/sched/sched.cpp
<https://reviews.apache.org/r/27315/#comment100170>

    nextDuration/durationNext would be a more descriptive variable name.


- Cody Maloney


On Oct. 28, 2014, 11:08 p.m., Vinod Kone wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/27315/
> -----------------------------------------------------------
> 
> (Updated Oct. 28, 2014, 11:08 p.m.)
> 
> 
> Review request for mesos and Ben Mahler.
> 
> 
> Bugs: MESOS-1903
>     https://issues.apache.org/jira/browse/MESOS-1903
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> Uses the same backoff (except no initial backoff) strategy used by the slave 
> during registration.
> 
> 
> Diffs
> -----
> 
>   include/mesos/scheduler.hpp 42e4e279d059801cd85955fd04995b60051a2b5e 
>   src/Makefile.am 374f284e1ac839fbcd8a28171b1ff4fbe8a17bd4 
>   src/local/constants.hpp PRE-CREATION 
>   src/local/constants.cpp PRE-CREATION 
>   src/local/flags.hpp 54e88319afc68007ff5d7c0d0179b685ef845c87 
>   src/sched/sched.cpp 0fb8c7bda75545389f8024489b3c76ae115111f4 
>   src/tests/fault_tolerance_tests.cpp 
> a18a41a3e34ff112e04e693447d757403e5013bd 
> 
> Diff: https://reviews.apache.org/r/27315/diff/
> 
> 
> Testing
> -------
> 
> make check
> 
> 
> Thanks,
> 
> Vinod Kone
> 
>

Reply via email to