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/04/25 23:36:04 UTC

[23/48] mesos git commit: Added LIBPROCESS_PORT environment removal for mesos-fetcher.

Added LIBPROCESS_PORT environment removal for mesos-fetcher.

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


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

Branch: refs/heads/0.27.x
Commit: a1a36053dcedd7208de543f62db54968cb7c8bd1
Parents: 9f4fa0e
Author: Shuai Lin <li...@gmail.com>
Authored: Fri Feb 5 04:38:28 2016 +0100
Committer: Joris Van Remoortere <jo...@gmail.com>
Committed: Tue Feb 16 18:21:09 2016 -0500

----------------------------------------------------------------------
 src/slave/containerizer/fetcher.cpp | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/a1a36053/src/slave/containerizer/fetcher.cpp
----------------------------------------------------------------------
diff --git a/src/slave/containerizer/fetcher.cpp b/src/slave/containerizer/fetcher.cpp
index f7e3f7d..1b67d1a 100644
--- a/src/slave/containerizer/fetcher.cpp
+++ b/src/slave/containerizer/fetcher.cpp
@@ -752,6 +752,11 @@ Future<Nothing> FetcherProcess::run(
   // environment variable.
   map<string, string> environment = os::environment();
 
+  // The libprocess port is explicitly removed because this will conflict
+  // with the already-running agent.
+  environment.erase("LIBPROCESS_PORT");
+  environment.erase("LIBPROCESS_ADVERTISE_PORT");
+
   environment["MESOS_FETCHER_INFO"] = stringify(JSON::protobuf(info));
 
   if (!flags.hadoop_home.empty()) {