You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by qi...@apache.org on 2017/11/05 01:41:16 UTC
[1/2] mesos git commit: Ignored the tasks already being killed when
killing the task group.
Repository: mesos
Updated Branches:
refs/heads/1.2.x a7fb1fbce -> fdadfa416
Ignored the tasks already being killed when killing the task group.
When the scheduler tries to kill multiple tasks in the task group
simultaneously, the default executor will kill the tasks one by
one. When the first task is killed, the default executor will kill
all the other tasks in the task group, however, we need to ignore
the tasks which are already being killed, otherwise, the check
`CHECK(!container->killing);` in `DefaultExecutor::kill()` will fail.
Review: https://reviews.apache.org/r/62836
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/d381f730
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/d381f730
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/d381f730
Branch: refs/heads/1.2.x
Commit: d381f730aaed386c3013d234b6591d0ae62dcf10
Parents: a7fb1fb
Author: Qian Zhang <zh...@gmail.com>
Authored: Mon Oct 9 09:01:15 2017 +0800
Committer: Qian Zhang <zh...@gmail.com>
Committed: Sat Nov 4 10:58:14 2017 +0800
----------------------------------------------------------------------
src/launcher/default_executor.cpp | 8 ++++++++
1 file changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/d381f730/src/launcher/default_executor.cpp
----------------------------------------------------------------------
diff --git a/src/launcher/default_executor.cpp b/src/launcher/default_executor.cpp
index f30947e..c03df7c 100644
--- a/src/launcher/default_executor.cpp
+++ b/src/launcher/default_executor.cpp
@@ -724,6 +724,14 @@ protected:
Owned<Container> container_ = containers.at(taskId);
container_->killingTaskGroup = true;
+ // Ignore if the task is already being killed. This can happen
+ // when the scheduler tries to kill multiple tasks in the task
+ // group simultaneously and then one of the tasks is killed
+ // while the other tasks are still being killed, see MESOS-8051.
+ if (container_->killing) {
+ continue;
+ }
+
kill(container_);
}
}
[2/2] mesos git commit: Added MESOS-8051 to the 1.2.3 CHANGELOG.
Posted by qi...@apache.org.
Added MESOS-8051 to the 1.2.3 CHANGELOG.
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/fdadfa41
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/fdadfa41
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/fdadfa41
Branch: refs/heads/1.2.x
Commit: fdadfa416fb58f642e14817a95486c2bb50c91e6
Parents: d381f73
Author: Qian Zhang <zh...@gmail.com>
Authored: Sat Nov 4 20:26:23 2017 +0800
Committer: Qian Zhang <zh...@gmail.com>
Committed: Sat Nov 4 20:26:23 2017 +0800
----------------------------------------------------------------------
CHANGELOG | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/fdadfa41/CHANGELOG
----------------------------------------------------------------------
diff --git a/CHANGELOG b/CHANGELOG
index 67d543e..6553e68 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -16,6 +16,7 @@ All Issues:
* [MESOS-7909] - Ordering dependency between 'linux/capabilities' and 'docker/runtime' isolator.
* [MESOS-7926] - Abnormal termination of default executor can cause MesosContainerizer::destroy to fail.
* [MESOS-7934] - OOM due to LibeventSSLSocket send incorrectly returning 0 after shutdown.
+ * [MESOS-8051] - Killing TASK_GROUP fail to kill some tasks.
* [MESOS-8080] - The default executor does not propagate missing task exit status correctly.
* [MESOS-8135] - Masters can lose track of tasks' executor IDs.