mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joseph Wu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MESOS-6959) Separate the mesos-containerizer binary into a static binary, which only depends on stout
Date Fri, 20 Jan 2017 00:48:26 GMT
Joseph Wu created MESOS-6959:
--------------------------------

             Summary: Separate the mesos-containerizer binary into a static binary, which
only depends on stout
                 Key: MESOS-6959
                 URL: https://issues.apache.org/jira/browse/MESOS-6959
             Project: Mesos
          Issue Type: Task
          Components: ke, cmake
            Reporter: Joseph Wu


The {{mesos-containerizer}} binary currently has [three commands|https://github.com/apache/mesos/blob/6cf3a94a52e87a593c9cba373bf433cfc4178639/src/slave/containerizer/mesos/main.cpp#L46-L48]:

* [MesosContainerizerLaunch|https://github.com/apache/mesos/blob/6cf3a94a52e87a593c9cba373bf433cfc4178639/src/slave/containerizer/mesos/launch.cpp]
* [MesosContainerizerMount|https://github.com/apache/mesos/blob/6cf3a94a52e87a593c9cba373bf433cfc4178639/src/slave/containerizer/mesos/mount.cpp]
* [NetworkCniIsolatorSetup|https://github.com/apache/mesos/blob/6cf3a94a52e87a593c9cba373bf433cfc4178639/src/slave/containerizer/mesos/isolators/network/cni/cni.cpp#L1776-L1997]

These commands are all heavily dependent on stout, and have no need to be linked to libprocess.
 In fact, adding an erroneous call to {{process::initialize}} (either explicitly, or by accidentally
using a libprocess method) will break {{mesos-containerizer}} can cause several Mesos containerizer
tests to fail.  (The tasks fail to launch, saying {{Failed to synchronize with agent (it's
probably exited)}}).

Because this binary only depends on stout, we can separate it from the other source files
and make this a static binary.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message