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

Review request for mesos and Benjamin Mahler.


Repository: mesos


Description
-------

Based on this ticket (https://issues.apache.org/jira/browse/MESOS-9305)
and the ROOT_CGROUPS_CreateRecursively test in CgroupsIsolatorTest,
there seems to be a possibility that the root folder may be deleted and
new cgroups cannot be properly created.

In v1, this was addressed by enabling recursively creating the groups.

In v2, since we make use of cgroup.subtree_control to determine a cgroup
and its descendents' access to controllers, we cannot recover this effectively
if the root folder is deleted, so we cant just recursively create the folders.

Hence, we elected to crash if the root folder is not found, as it will allow
us to restart and go through the logic that takes care of setting all the
values inside cgroup.subtree_control again.


Diffs
-----

  src/slave/containerizer/mesos/isolators/cgroups2/cgroups2.cpp 
6fce8c984e4dd85a694453a778c9a32f707bde9f 


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


Testing
-------


Thanks,

Jason Zhou

Reply via email to