-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/65350/#review199026
-----------------------------------------------------------
Patch looks great!
Reviews applied: [65350]
Passed command: export OS='ubuntu:14.04' BUILDTOOL='autotools' COMPILER='gcc' CONFIGURATION='--verbose
--disable-libtool-wrappers' ENVIRONMENT='GLOG_v=1 MESOS_VERBOSE=1'; ./support/docker-build.sh
- Mesos Reviewbot
On March 12, 2018, 2:50 p.m., Andrei Budnik wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/65350/
> -----------------------------------------------------------
>
> (Updated March 12, 2018, 2:50 p.m.)
>
>
> Review request for mesos, Alexander Rukletsov, Gilbert Song, Jie Yu, and Till Toenshoff.
>
>
> Bugs: MESOS-8489
> https://issues.apache.org/jira/browse/MESOS-8489
>
>
> Repository: mesos
>
>
> Description
> -------
>
> This patch modifies `cgroup::prepare` function to save the results of
> a test for a nested cgroups support in a hashmap to reuse it in the
> future.
>
> Besides optimization, this patch fixes flaky
> `LinuxCapabilitiesIsolatorFlagsTest.ROOT_IsolatorFlags` test. There
> was a race condition between two starting agents, where the first
> agent could detect `test` orphaned container while iterating over
> `/sys/fs/cgroup/freezer/mesos/` cgroup, because the second agent
> is calling `cgroup::prepare` during its initialization. This patch
> fixes the test, because it won't create a `test` cgroup in
> `cgroups::prepare` as this test has already been passed during the
> initialization of the first agent and the result is stored in hashmap.
>
>
> Diffs
> -----
>
> src/linux/cgroups.cpp 682b288da8d56a623ef32cf6f0beecd9fc327622
>
>
> Diff: https://reviews.apache.org/r/65350/diff/2/
>
>
> Testing
> -------
>
> sudo make check (Fedora 25)
> internal CI
>
>
> Thanks,
>
> Andrei Budnik
>
>
|