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

(Updated Sept. 21, 2016, 4:15 a.m.)

Review request for mesos and Jiang Yan Xu.


Refactored based on revised APIs in resources.

Bugs: MESOS-6062

Repository: mesos


When static resources indicate disks with a positive size, we use that
for the disk resources on the agent. However, --resources can include
disks with size of 0, which indicates that mesos agent determine the
size of those disks from the host and uses that information instead.
Note that this is not allowed for PATH disks since PATH disks can be
carved into smaller chunks and we cannot assume that the whole
physical disk is available to the PATH disk.

With this change, JSON or textual representation for disk resources
that specify scalar value of 0 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 in JSON or textual formats
still results in an invalid resource.

Diffs (updated)


Diff: https://reviews.apache.org/r/51879/diff/


Tests passed.


Anindya Sinha

Reply via email to