[
https://issues.apache.org/jira/browse/MESOS-6202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15502997#comment-15502997
]
haosdent commented on MESOS-6202:
---------------------------------
This requires we update the UUID::fromString to
{code}
- static UUID fromString(const std::string& s)
+ static Try<UUID> fromString(const std::string& s)
{
- // NOTE: We don't use THREAD_LOCAL for the `string_generator`
- // (unlike for the `random_generator` above), because it is cheap
- // to construct one each time.
- boost::uuids::string_generator gen;
- boost::uuids::uuid uuid = gen(s);
- return UUID(uuid);
+ try {
+ // NOTE: We don't use THREAD_LOCAL for the `string_generator`
+ // (unlike for the `random_generator` above), because it is cheap
+ // to construct one each time.
+ boost::uuids::string_generator gen;
+ boost::uuids::uuid uuid = gen(s);
+ return UUID(uuid);
+ } catch (const std::exception& e) {
+ return Error("Invalid UUID '" + s + "': " + e.what());
+ } catch (...) {
+ return Error("Invalid UUID '" + s + "': unknown exception.");
+ }
}
{code}
first.
> Docker containerizer kills containers whose name starts with 'mesos-'
> ---------------------------------------------------------------------
>
> Key: MESOS-6202
> URL: https://issues.apache.org/jira/browse/MESOS-6202
> Project: Mesos
> Issue Type: Bug
> Components: containerization, docker
> Affects Versions: 1.0.1
> Environment: Dockerized
> {{mesosphere/mesos-slave:1.0.1-2.0.93.ubuntu1404}}
> Reporter: Marc Villacorta
>
> I run 3 docker containers in my CoreOS system whose names start with
> _'mesos-'_ those are: _'mesos-master'_, _'mesos-dns'_ and _'mesos-agent'_.
> I can start the first two without any problem but when I start the third one
> _('mesos-agent')_ all three containers are killed by the docker daemon.
> If I rename the containers to _'m3s0s-master'_, _'m3s0s-dns'_ and
> _'m3s0s-agent'_ everything works.
> I tracked down the problem to
> [this|https://github.com/apache/mesos/blob/16a563aca1f226b021b8f8815c4d115a3212f02b/src/slave/containerizer/docker.cpp#L116-L120]
> code which is marked to be removed after deprecation cycle.
> I was previously running Mesos 0.28.2 without this problem.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)