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 2013/08/14 20:07:38 UTC

[15/18] git commit: Fixed slave to always call Isolator::resourcesChanged() when an executor re-registers.

Fixed slave to always call Isolator::resourcesChanged() when an
executor re-registers.

Review: https://reviews.apache.org/r/13503


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/e79eef3f
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/e79eef3f
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/e79eef3f

Branch: refs/heads/master
Commit: e79eef3fe8e961f5236aaeec1998006d0e200ed6
Parents: 7ca371c
Author: Vinod Kone <vi...@twitter.com>
Authored: Mon Aug 12 12:07:37 2013 -0700
Committer: Vinod Kone <vi...@twitter.com>
Committed: Wed Aug 14 10:57:42 2013 -0700

----------------------------------------------------------------------
 src/slave/slave.cpp | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/e79eef3f/src/slave/slave.cpp
----------------------------------------------------------------------
diff --git a/src/slave/slave.cpp b/src/slave/slave.cpp
index 803da8d..cf9f292 100644
--- a/src/slave/slave.cpp
+++ b/src/slave/slave.cpp
@@ -1648,6 +1648,13 @@ void Slave::reregisterExecutor(
         statusUpdate(update); // This also updates the executor's resources!
       }
 
+      // Tell the isolator to update the resources.
+      dispatch(isolator,
+               &Isolator::resourcesChanged,
+               frameworkId,
+               executorId,
+               executor->resources);
+
       // Now, if there is any task still in STAGING state and not in
       // 'tasks' known to the executor, the slave must have died
       // before the executor received the task! Relaunch it!