Repository: mesos Updated Branches: refs/heads/master 0c4a5c04e -> 5e5a8102c
Added a new reason to task status. Added new reason `REASON_AGENT_REREGISTERED` (`REASON_SLAVE_REREGISTERED` in v0) to task status. The new reason will be used when master starts to send status update during the re-registration of an unreachable or unknown agent. Review: https://reviews.apache.org/r/64250/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/34503f8b Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/34503f8b Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/34503f8b Branch: refs/heads/master Commit: 34503f8b429e3459a7a132ca8cf02acdec3c7881 Parents: 0c4a5c0 Author: Megha Sharma <[email protected]> Authored: Tue Dec 12 08:21:14 2017 -0800 Committer: Jiang Yan Xu <[email protected]> Committed: Tue Dec 12 10:09:53 2017 -0800 ---------------------------------------------------------------------- docs/task-state-reasons.md | 15 ++++++++++++++- include/mesos/mesos.proto | 1 + include/mesos/v1/mesos.proto | 1 + 3 files changed, 16 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/34503f8b/docs/task-state-reasons.md ---------------------------------------------------------------------- diff --git a/docs/task-state-reasons.md b/docs/task-state-reasons.md index 8cf0c53..5f7f8d2 100644 --- a/docs/task-state-reasons.md +++ b/docs/task-state-reasons.md @@ -468,4 +468,17 @@ update was sent. state <code> TASK_RUNNING </code>. </td></tr> -</table> + +<tr><td><code> REASON_SLAVE_REREGISTERED +</code></td><td> The agent on which the task was running has re-registered + after being marked unreachable by the master. +<br/><strong> Note: +</strong> Due to garbage collection of the unreachable and gone agents + in the registry and master state Mesos also sends such status + updates for agents unknown to the master. +<strong> Note: +</strong> Status updates with this reason are modified copies re-sent + by the master which reflect the states of the tasks reported + by the agent upon its re-registration. See comments for + <code> REASON_RECONCILIATION </code>. +</td></tr></table> http://git-wip-us.apache.org/repos/asf/mesos/blob/34503f8b/include/mesos/mesos.proto ---------------------------------------------------------------------- diff --git a/include/mesos/mesos.proto b/include/mesos/mesos.proto index 59c80ad..9e4c669 100644 --- a/include/mesos/mesos.proto +++ b/include/mesos/mesos.proto @@ -2408,6 +2408,7 @@ message TaskStatus { REASON_SLAVE_DISCONNECTED = 10; REASON_SLAVE_REMOVED = 11; REASON_SLAVE_REMOVED_BY_OPERATOR = 31; + REASON_SLAVE_REREGISTERED = 32; REASON_SLAVE_RESTARTED = 12; REASON_SLAVE_UNKNOWN = 13; REASON_TASK_KILLED_DURING_LAUNCH = 30; http://git-wip-us.apache.org/repos/asf/mesos/blob/34503f8b/include/mesos/v1/mesos.proto ---------------------------------------------------------------------- diff --git a/include/mesos/v1/mesos.proto b/include/mesos/v1/mesos.proto index 6c263b5..f1649bb 100644 --- a/include/mesos/v1/mesos.proto +++ b/include/mesos/v1/mesos.proto @@ -2389,6 +2389,7 @@ message TaskStatus { REASON_AGENT_DISCONNECTED = 10; REASON_AGENT_REMOVED = 11; REASON_AGENT_REMOVED_BY_OPERATOR = 31; + REASON_AGENT_REREGISTERED = 32; REASON_AGENT_RESTARTED = 12; REASON_AGENT_UNKNOWN = 13; REASON_TASK_KILLED_DURING_LAUNCH = 30;
