-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/61661/
-----------------------------------------------------------
Review request for mesos and Jiang Yan Xu.
Bugs: MESOS-7795
https://issues.apache.org/jira/browse/MESOS-7795
Repository: mesos
Description
-------
After a reboot the agent checkpoints new boot ID after recovering and
agent info after registering with the master. If new agent info is
incompatible with the checkpointed one, the agent will recover as a new
one. But if the agent is restarted before registering it will fail to
start again, because new boot ID will already be checkpointed.
This patch fixes it by checkpointing the agent's decision to recover as
a new one by removing the "latest" meta symlink.
Diffs
-----
src/slave/slave.cpp 7381530515f86faf4c3e8f82bcd9483f6cf0498b
Diff: https://reviews.apache.org/r/61661/diff/1/
Testing
-------
Ran `make check`. A new test is added in the subsequent patch.
Thanks,
Ilya Pronin