-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/63232/
-----------------------------------------------------------

(Updated Nov. 5, 2017, 7:24 p.m.)


Review request for mesos, Benjamin Mahler and Greg Mann.


Changes
-------

Updated the description and added a comment.


Bugs: MESOS-7851
    https://issues.apache.org/jira/browse/MESOS-7851


Repository: mesos


Description (updated)
-------

The intention is for us to work with resources in the `post-reservation-
refinement` format in the master memory, and store them in the master
registry or agent checkpoint in the `pre` format in order to support
downgrades. In this case, we correctly store the `pre` format resources
in the master registry, but we don't convert them back when we read it
out of the registry. This patch converts the resources back to `post`
when we read from the registry.

This simply addresses a tech-debt. The `authorizeResource` function
for example currently handles both formats because it has to account
for the old format that is stored in the recovered agents.


Diffs (updated)
-----

  src/master/master.cpp 49bc50ead75adba82a7d8de23a87b06ccd269c48 


Diff: https://reviews.apache.org/r/63232/diff/2/

Changes: https://reviews.apache.org/r/63232/diff/1-2/


Testing
-------

`make check`


Thanks,

Michael Park

Reply via email to