This is an automated email from the ASF dual-hosted git repository. mzhu pushed a change to branch 1.7.x in repository https://gitbox.apache.org/repos/asf/mesos.git.
from 9d54011 Sent SIGKILL to I/O switchboard server as a safeguard. new cb6ef79 Disallowed nan, inf and so on when parsing Value::Scalar. new f0a7941 Pulled up the resource quantities class for more general use. new 54aa25b Added tests for `ResourceQuantities`. new f0df5b6 Added a `Resources` method `contains(ResourceQuantities)`. new 8acfdc6 Extended `min_allocatable_resources` flag to cover non-scalar resources. The 5 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: docs/configuration/master.md | 22 ++-- include/mesos/allocator/allocator.hpp | 4 +- include/mesos/resources.hpp | 11 ++ include/mesos/v1/resources.hpp | 11 ++ src/CMakeLists.txt | 1 + src/Makefile.am | 3 + src/common/resource_quantities.cpp | 138 +++++++++++++++++++++ src/common/resource_quantities.hpp | 127 +++++++++++++++++++ src/common/resources.cpp | 44 +++++++ src/common/values.cpp | 15 +++ src/master/allocator/mesos/allocator.hpp | 25 ++-- src/master/allocator/mesos/hierarchical.cpp | 10 +- src/master/allocator/mesos/hierarchical.hpp | 5 +- src/master/allocator/sorter/drf/sorter.cpp | 14 ++- src/master/allocator/sorter/drf/sorter.hpp | 6 +- src/master/allocator/sorter/random/sorter.hpp | 6 +- src/master/allocator/sorter/sorter.hpp | 82 ------------ src/master/flags.cpp | 22 ++-- src/master/master.cpp | 58 ++++----- src/tests/CMakeLists.txt | 1 + src/tests/allocator.hpp | 2 +- src/tests/hierarchical_allocator_tests.cpp | 13 +- src/tests/master_allocator_tests.cpp | 19 +-- src/tests/resource_quantities_tests.cpp | 171 ++++++++++++++++++++++++++ src/tests/resources_tests.cpp | 96 +++++++++++++++ src/tests/values_tests.cpp | 9 ++ src/v1/resources.cpp | 44 +++++++ src/v1/values.cpp | 15 +++ 28 files changed, 800 insertions(+), 174 deletions(-) create mode 100644 src/common/resource_quantities.cpp create mode 100644 src/common/resource_quantities.hpp create mode 100644 src/tests/resource_quantities_tests.cpp