mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Bannier <>
Subject Re: Review Request 67274: Rejected non-zero scalar resource values which be represented as zero.
Date Wed, 30 May 2018 21:50:24 GMT

This is an automatically generated e-mail. To reply, visit:

(Updated May 30, 2018, 11:50 p.m.)

Review request for mesos, Jie Yu, Joris Van Remoortere, Michael Park, and Neil Conway.


Do not reject explicitly zero resources. This rolls this patch back to revision 2.

Bugs: MESOS-8945

Repository: mesos

Description (updated)

Internally values of scalar resources are stored in a fixed point
representation. This can lead to (expected) precision loss.

This patch updates the resource validation ensuring that values of
scalar resources are either zero or large enough so that they are
still represented as non-zero values after conversion to the internal
fixed point format. With that we can still parse resources containing
resource values explictly set to zero to be able to distinguish empty
and abset resources, but prevent propagation of values accidentially
rounded to an effectively empty result.

While this patch should not change valid, intended use cases, it might
change the behavior for erroneous, already broken framework workflows.

Diffs (updated)

  src/common/resources.cpp 192d086e60b81c0ae8e26d4120beee2034f63d3e 
  src/tests/master_tests.cpp 6efcbd12902de32428cb7f23ed0d3967a18f749d 
  src/tests/resources_tests.cpp 1201efec3ff0abc268f896c1fe2330571390b3fd 




`make check`


Benjamin Bannier

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message