You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2016/01/20 02:50:42 UTC
mesos git commit: Made executor struct in slave assign `pid/http` to
be None() explicitly.
Repository: mesos
Updated Branches:
refs/heads/master 147895b4b -> f0cc3c17c
Made executor struct in slave assign `pid/http` to be None() explicitly.
The executor assigned `pid` to `UPID()` instead of `None()`. The value
`UPID()` is used as a special flag during recovery when the executor
type is unknown i.e. no pid/http marker file is found.
Review: https://reviews.apache.org/r/41285/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/f0cc3c17
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/f0cc3c17
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/f0cc3c17
Branch: refs/heads/master
Commit: f0cc3c17c84432ed6dcfbe11ccaf654a221bebb5
Parents: 147895b
Author: Anand Mazumdar <ma...@gmail.com>
Authored: Tue Jan 19 17:47:50 2016 -0800
Committer: Vinod Kone <vi...@gmail.com>
Committed: Tue Jan 19 17:49:29 2016 -0800
----------------------------------------------------------------------
src/slave/slave.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/f0cc3c17/src/slave/slave.cpp
----------------------------------------------------------------------
diff --git a/src/slave/slave.cpp b/src/slave/slave.cpp
index bd7fe03..e23c329 100644
--- a/src/slave/slave.cpp
+++ b/src/slave/slave.cpp
@@ -5464,7 +5464,8 @@ Executor::Executor(
containerId(_containerId),
directory(_directory),
checkpoint(_checkpoint),
- pid(UPID()),
+ http(None()),
+ pid(None()),
resources(_info.resources()),
completedTasks(MAX_COMPLETED_TASKS_PER_EXECUTOR)
{