mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anindya Sinha <>
Subject Re: Review Request 51879: Autodetect value of resource when not specified in static resources.
Date Thu, 01 Jun 2017 19:16:46 GMT

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

(Updated June 1, 2017, 7:16 p.m.)

Review request for mesos and Jiang Yan Xu.


Addressed review comments.

Bugs: MESOS-6062

Repository: mesos


When static resources indicate resources with a positive size, we use
that for the resources on the agent. However, --resources can include
resources with no size, which indicates that mesos agent determine the
size of those resources from the agent and uses that information. Note
that auto-detection of resources is allowed for all known resource
types represented in JSON format only. Auto-detection is not done when
the resources are represented in text format.

With this change, JSON representation for disk resources that do not
specify any value would not result in an error, but those resources
will not be accounted for until a valid size is determined for such
resources. A scalar value of -1 still results in an invalid resource.

Diffs (updated)

  include/mesos/resources.hpp 5d16a80a0d4fc386ad62c7dffe96b68d11ebddb1 
  include/mesos/v1/resources.hpp e1c35777227dd709f90b934859eb946daffbcd97 
  src/common/resources.cpp 97c00b204b17fa6b47face6873eea9751978f52c 
  src/slave/containerizer/containerizer.cpp 15ae0b33a5ea8f73a9a84081d9c310c1d59c3141 
  src/tests/persistent_volume_endpoints_tests.cpp 9b820b8f4e0d0e2c62b5c9b420b790cdfb59dd0c

  src/tests/reservation_endpoints_tests.cpp 505c5421e95378177a7a09f462e5625ffa75cd37 
  src/v1/resources.cpp 559b048b65cce2da2e75abd740fc857f35280143 




Tests passed.


Anindya Sinha

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