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


Fix it, then Ship it!





src/common/resource_quantities.cpp
Lines 147 (patched)
<https://reviews.apache.org/r/70062/#comment299730>

    Newline before the comment?



src/common/resource_quantities.cpp
Lines 152 (patched)
<https://reviews.apache.org/r/70062/#comment299731>

    Newline before the if?



src/common/resource_quantities.cpp
Lines 184 (patched)
<https://reviews.apache.org/r/70062/#comment299732>

    Newline before the comment?



src/common/resource_quantities.cpp
Lines 189 (patched)
<https://reviews.apache.org/r/70062/#comment299733>

    Newline before the if?



src/common/resource_quantities.cpp
Lines 216 (patched)
<https://reviews.apache.org/r/70062/#comment299734>

    Can you use CHECK_GE here so that it prints out the value of 'scalar' if it 
fails?


- Benjamin Mahler


On March 14, 2019, 11:53 p.m., Meng Zhu wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/70062/
> -----------------------------------------------------------
> 
> (Updated March 14, 2019, 11:53 p.m.)
> 
> 
> Review request for mesos and Benjamin Mahler.
> 
> 
> Bugs: MESOS-9608
>     https://issues.apache.org/jira/browse/MESOS-9608
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This patch removed the map interface of
> `class ResourceQuantities`, added a few built-in
> arithmetic operations. Now, absent resource items imply
> there is no (zero) such resources.
> 
> Also added a to-do to add `class ResourceLimits` which
> is similar but treats absent resource entries as having
> infinite amount of such resource.
> 
> Also changed affected call sites and tests accordingly.
> 
> 
> Diffs
> -----
> 
>   src/common/resource_quantities.hpp 31ce7b98a8256173d6ad26e2f095373a01d7baae 
>   src/common/resource_quantities.cpp 1c8eec03580abf86df4ce947c517a74b0a8e09a7 
>   src/master/allocator/sorter/drf/sorter.hpp 
> e64c9ad3520a601f7854e807ef5306d5bffc0ff8 
>   src/master/allocator/sorter/drf/sorter.cpp 
> b128df08e3c93d3d1a75c637cbed359c2cb8cda4 
>   src/master/allocator/sorter/random/sorter.hpp 
> 4f230ec740e2f80d5333c61c5b23d9a631bdb273 
>   src/master/allocator/sorter/random/sorter.cpp 
> f578ef19b4dee9cf9c7c99a8988829ecde70ed6d 
>   src/tests/resource_quantities_tests.cpp 
> 435a4949b95e9a83be73781388eb4be9c7da695b 
> 
> 
> Diff: https://reviews.apache.org/r/70062/diff/5/
> 
> 
> Testing
> -------
> 
> make check
> Dedicated tests are added in the subsequent patch.
> 
> 
> Thanks,
> 
> Meng Zhu
> 
>

Reply via email to