----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/62834/#review187411 -----------------------------------------------------------
Patch looks great! Reviews applied: [62843, 62834] Passed command: export OS='ubuntu:14.04' BUILDTOOL='autotools' COMPILER='gcc' CONFIGURATION='--verbose --disable-libtool-wrappers' ENVIRONMENT='GLOG_v=1 MESOS_VERBOSE=1'; ./support/docker-build.sh - Mesos Reviewbot On Oct. 9, 2017, 12:14 p.m., Benjamin Bannier wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/62834/ > ----------------------------------------------------------- > > (Updated Oct. 9, 2017, 12:14 p.m.) > > > Review request for mesos, Jie Yu and Jan Schlicht. > > > Bugs: MESOS-8058 > https://issues.apache.org/jira/browse/MESOS-8058 > > > Repository: mesos > > > Description > ------- > > Previously agents only had static total resources stored as part of > their 'SlaveInfo'. Any operations were always applied to these > resources. We have since changed 'UpdateSlaveMessage' to be able to > communicate changes to agent total resources, and now trigger such an > update on e.g., agent registration. While the transmitted information > was redundant for now, this still introduced a race between agents > informing the master about their resources with an > 'UpdateSlaveMessage' and the master attempting to update agents with > 'CheckpointResourcesMessage'. > > This patch applies checkpointed resources to the potentially dynamic > agent total resources instead of its static resources. This allows us > to catch inconsistencies between the master's view of the agent and > the agent's actual state in the agent and potentially trigger a > reconciliation. > > > Diffs > ----- > > src/slave/slave.cpp 2e05637ed10a39eb3f4ce953506b1cb5d50caf3c > > > Diff: https://reviews.apache.org/r/62834/diff/1/ > > > Testing > ------- > > `make check` > > > Thanks, > > Benjamin Bannier > >
