You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Kapil Arya (JIRA)" <ji...@apache.org> on 2017/12/14 21:30:00 UTC
[jira] [Commented] (MESOS-7969) Handle cgroups v2 hierarchy when
parsing /proc/self/cgroups.
[ https://issues.apache.org/jira/browse/MESOS-7969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16291642#comment-16291642 ]
Kapil Arya commented on MESOS-7969:
-----------------------------------
{code}
commit 049e69a4eb7e896f9bcdbc399f05004e438c3c6e
Author: Kapil Arya <ka...@mesosphere.io>
Date: Wed Sep 13 15:24:15 2017 -0400
Ignored cgroups v2 hierarchy when parsing /proc/self/cgroups.
Cgroups v2 hierarchies don't list the "controllers" field (e.g.,
"0::/user.slice/user-1000.slice/session-5.scope) is empty and hence
the cgroup parser failes. We should simply skip over fields with empty
controller field.
Review: https://reviews.apache.org/r/62253/
{code}
> Handle cgroups v2 hierarchy when parsing /proc/self/cgroups.
> ------------------------------------------------------------
>
> Key: MESOS-7969
> URL: https://issues.apache.org/jira/browse/MESOS-7969
> Project: Mesos
> Issue Type: Bug
> Affects Versions: 1.2.3, 1.3.2, 1.4.1, 1.5.0
> Reporter: Kapil Arya
> Assignee: Kapil Arya
> Fix For: 1.2.3, 1.3.2, 1.4.1, 1.5.0
>
>
> Cgroups v2 hierarchies don't list the "controllers" field (e.g., "0::/user.slice/user-1000.slice/session-5.scope) is empty [1] and hence the cgroup parser failes. We should simply skip over fields with empty controller field.
> {code}
> [ RUN ] CgroupsAnyHierarchyTest.ROOT_CGROUPS_Read
> ../../src/tests/containerizer/cgroups_tests.cpp:464: Failure
> cgroup: Unexpected format in /proc/20668/cgroup
> [ FAILED ] CgroupsAnyHierarchyTest.ROOT_CGROUPS_Read (8 ms)
> {code}
> [1] See 6-2 in https://www.kernel.org/doc/Documentation/cgroup-v2.txt
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)