-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/75170/
-----------------------------------------------------------

Review request for mesos and Benjamin Mahler.


Repository: mesos


Description
-------

Currently, the linux launcher's behavior in cgroups2 is causing the
NamespacesIsolatorTest suite to fail. This patch issues a fix.

In cgroups2, the current linux launcher does not create cgroups to
track pids for spawned processes. As a result when attempting to clean
up a process, its destroy() function will return an error as it expects
the containerizer to have a cgroup.

We will mimick the same behavior as cgroups v1, and create a leaf
cgroup for the container to place the pid into when spawning processes
via fork().


Diffs
-----

  src/slave/containerizer/mesos/linux_launcher.cpp 
f651afee0de9674da76f97fee93ce2d2573dd289 


Diff: https://reviews.apache.org/r/75170/diff/1/


Testing
-------

All NamespacesIsolatorTest pass on cgroups2


Thanks,

Jason Zhou

Reply via email to