You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by al...@apache.org on 2018/03/26 13:04:01 UTC

mesos git commit: Ensured correct termination order in IOSwitchboard's main function.

Repository: mesos
Updated Branches:
  refs/heads/master 2132b66c3 -> 1ed3eae3c


Ensured correct termination order in IOSwitchboard's main function.

This patch terminates `IOSwitchboardServer` actor before calling
`process::finalize()`. This patch is an addition to commit 02ebf9986a.

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


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

Branch: refs/heads/master
Commit: 1ed3eae3ca09c8fdeac349d78e568d2a91be306b
Parents: 2132b66
Author: Andrei Budnik <ab...@mesosphere.com>
Authored: Mon Mar 26 15:03:30 2018 +0200
Committer: Alexander Rukletsov <al...@apache.org>
Committed: Mon Mar 26 15:03:30 2018 +0200

----------------------------------------------------------------------
 src/slave/containerizer/mesos/io/switchboard_main.cpp | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/1ed3eae3/src/slave/containerizer/mesos/io/switchboard_main.cpp
----------------------------------------------------------------------
diff --git a/src/slave/containerizer/mesos/io/switchboard_main.cpp b/src/slave/containerizer/mesos/io/switchboard_main.cpp
index 3838aac..c6ea214 100644
--- a/src/slave/containerizer/mesos/io/switchboard_main.cpp
+++ b/src/slave/containerizer/mesos/io/switchboard_main.cpp
@@ -151,6 +151,8 @@ int main(int argc, char** argv)
   Future<Nothing> run = server.get()->run();
   run.await();
 
+  server->reset();
+
   // NOTE: We need to finalize libprocess, on Windows especially,
   // as any binary that uses the networking stack on Windows must
   // also clean up the networking stack before exiting.