----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/70345/ -----------------------------------------------------------
Review request for mesos and Benjamin Mahler. Repository: mesos Description ------- This patch refactors the `shrinkResources()` helper to take in a target `ResourceQuantities`. Due to the absent-means-zero semantic of `class ResourceQuantities`, we also change the function to drop (shrink to zero) resources that are absent in the input `ResourceQuantities`. Diffs ----- src/master/allocator/mesos/hierarchical.cpp ef4f968a94d3a23c010202e27cc48cd10bbec2c0 Diff: https://reviews.apache.org/r/70345/diff/1/ Testing ------- make check Thanks, Meng Zhu