You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Joseph Wu (JIRA)" <ji...@apache.org> on 2017/01/20 00:51:26 UTC

[jira] [Updated] (MESOS-6959) Separate the mesos-containerizer binary into a static binary, which only depends on stout

     [ https://issues.apache.org/jira/browse/MESOS-6959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joseph Wu updated MESOS-6959:
-----------------------------
    Component/s:     (was: ke)

> 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: cmake
>            Reporter: Joseph Wu
>              Labels: cmake, mesosphere, microsoft
>
> 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)