[
https://issues.apache.org/jira/browse/MESOS-4677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15166531#comment-15166531
]
haosdent commented on MESOS-4677:
---------------------------------
Nice analyzation!
{quote}
cgroups.procs doesn't change since exec doesn't change the PID. But there may
be a race between updating the "threads" (cgroup/tasks) and us reading the
cgroup/tasks.
{quote}
I think cgroup/tasks value always same as cgroup/cgroup.procs here before
because we only have "cat". According to your analyzation, cgroup/tasks also
would change here, right?
> LimitedCpuIsolatorTest.ROOT_CGROUPS_Pids_and_Tids is flaky.
> -----------------------------------------------------------
>
> Key: MESOS-4677
> URL: https://issues.apache.org/jira/browse/MESOS-4677
> Project: Mesos
> Issue Type: Bug
> Components: test
> Affects Versions: 0.27
> Reporter: Bernd Mathiske
> Assignee: Joseph Wu
> Labels: flaky, test
>
> This test fails very often when run on CentOS 7, but may also fail elsewhere
> sometimes. Unfortunately, it tends to only fail when --verbose is not set.
> The output is this:
> {noformat}
> [21:45:21][Step 8/8] [ RUN ]
> LimitedCpuIsolatorTest.ROOT_CGROUPS_Pids_and_Tids
> [21:45:21][Step 8/8] ../../src/tests/containerizer/isolator_tests.cpp:807:
> Failure
> [21:45:21][Step 8/8] Value of: usage.get().threads()
> [21:45:21][Step 8/8] Actual: 0
> [21:45:21][Step 8/8] Expected: 1U
> [21:45:21][Step 8/8] Which is: 1
> [21:45:21][Step 8/8] [ FAILED ]
> LimitedCpuIsolatorTest.ROOT_CGROUPS_Pids_and_Tids (94 ms)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)