mesos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an...@apache.org
Subject [4/7] mesos git commit: Added the field `signal` to the `KillNestedContainer` call.
Date Wed, 16 Aug 2017 00:49:44 GMT
Added the field `signal` to the `KillNestedContainer` call.

This would be used later for sending signals (SIGTERM, SIGKILL etc.)
to the running container. Previously, SIGKILL was used by default.

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


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

Branch: refs/heads/master
Commit: 093ccde55e68b705fe5ef6e851be1dc2b7e436da
Parents: 8447d19
Author: Anand Mazumdar <anand@apache.org>
Authored: Tue Aug 15 17:37:49 2017 -0700
Committer: Anand Mazumdar <anand@apache.org>
Committed: Tue Aug 15 17:48:39 2017 -0700

----------------------------------------------------------------------
 include/mesos/agent/agent.proto    | 5 ++++-
 include/mesos/v1/agent/agent.proto | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/093ccde5/include/mesos/agent/agent.proto
----------------------------------------------------------------------
diff --git a/include/mesos/agent/agent.proto b/include/mesos/agent/agent.proto
index 9bac954..7c8c8a7 100644
--- a/include/mesos/agent/agent.proto
+++ b/include/mesos/agent/agent.proto
@@ -121,9 +121,12 @@ message Call {
     required ContainerID container_id = 1;
   }
 
-  // Kills the nested container. Currently only supports SIGKILL.
+  // Kills the nested container. The signal (e.g., SIGTERM, SIGKILL, etc.)
+  // to be sent to the container can be specified in the 'signal' field.
+  // If 'signal' is not set, SIGKILL is used by default.
   message KillNestedContainer {
     required ContainerID container_id = 1;
+    optional int32 signal = 2;
   }
 
   // Removes a nested container and its artifacts (runtime and sandbox

http://git-wip-us.apache.org/repos/asf/mesos/blob/093ccde5/include/mesos/v1/agent/agent.proto
----------------------------------------------------------------------
diff --git a/include/mesos/v1/agent/agent.proto b/include/mesos/v1/agent/agent.proto
index ea9282c..3e19912 100644
--- a/include/mesos/v1/agent/agent.proto
+++ b/include/mesos/v1/agent/agent.proto
@@ -121,9 +121,12 @@ message Call {
     required ContainerID container_id = 1;
   }
 
-  // Kills the nested container. Currently only supports SIGKILL.
+  // Kills the nested container. The signal (e.g., SIGTERM, SIGKILL, etc.)
+  // to be sent to the container can be specified in the 'signal' field.
+  // If 'signal' is not set, SIGKILL is used by default.
   message KillNestedContainer {
     required ContainerID container_id = 1;
+    optional int32 signal = 2;
   }
 
   // Removes a nested container and its artifacts (runtime and sandbox


Mime
View raw message