OpenSearch/core
Jason Tedor ae6331f27e Handle existence of cgroup version 2 hierarchy
When parsing the control groups to which the Elasticsearch process
belongs, we extract a map from subsystems to paths by parsing
/proc/self/cgroup. This file contains colon-delimited entries of the
form hierarchy-ID:subsystem-list:cgroup-path. For control group version
1 hierarchies, the subsystem-list is a comma-delimited list of the
subsystems for that hierarchy. For control group version 2 hierarchies
(which can only exist on Linux kernels since version 4.5), the
subsystem-list is an empty string. The previous parsing of
/proc/self/cgroup incorrectly accounted for this possibility (a +
instead of a * in a regular expression). This commit addresses this
issue, adds a test case that covers this possibility, and simplifies the
code that parses /proc/self/cgroup.

Relates #23493
2017-03-06 14:12:26 -08:00
..
licenses Upgrade to lucene-6.5.0-snapshot-d00c5ca (#23385) 2017-02-27 18:39:04 +01:00
src Handle existence of cgroup version 2 hierarchy 2017-03-06 14:12:26 -08:00
build.gradle Upgrade HDRHistogram to 2.1.9 (#23254) 2017-02-21 08:50:26 +01:00