[ 
https://issues.apache.org/jira/browse/IMPALA-12217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Smith resolved IMPALA-12217.
------------------------------------
    Fix Version/s: Impala 4.3.0
       Resolution: Fixed

> cgroup memory limit detection doesn't work for cgroups v2
> ---------------------------------------------------------
>
>                 Key: IMPALA-12217
>                 URL: https://issues.apache.org/jira/browse/IMPALA-12217
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Backend
>    Affects Versions: Impala 4.3.0
>            Reporter: Joe McDonnell
>            Assignee: Michael Smith
>            Priority: Blocker
>             Fix For: Impala 4.3.0
>
>
> Redhat 9 and Ubuntu 22 switched to cgroups v2, which has a different 
> hierarchy than cgroups v1. On startup, we get this error message:
> {noformat}
> I0615 03:42:54.895839 2633432 status.cc:129] Error reading /proc/self/cgroup: 
> Error(2): No such file or directory
>     @           0xfc6233  impala::Status::Status()
>     @          0x17ab766  impala::CGroupUtil::FindGlobalCGroup()
>     @          0x17acdb2  impala::CGroupUtil::FindAbsCGroupPath()
>     @          0x17ad065  impala::CGroupUtil::FindCGroupMemLimit()
>     @          0x17ad7e8  _ZN6impala10CGroupUtil11DebugStringB5cxx11Ev
>     @           0xfa9ce3  impala::InitCommonRuntime()
>     @          0x15978ed  ImpaladMain()
>     @           0xe977dc  main
>     @     0x7fada4963d90  (unknown)
>     @     0x7fada4963e40  __libc_start_main
>     @           0xe97635  _start
> I0615 03:42:54.895812 2633432 init.cc:536] Process CGroup Info: 
> memory.limit_in_bytes=Error reading /proc/self/cgroup: Error(2): No such file 
> or directory{noformat}
> The detection of container memory limits will be ineffective until this is 
> fixed.
> This also causes a backend test failure:
> {noformat}
> /home/ubuntu/Impala/be/src/util/proc-info-test.cc:38
> Value of: status_.ok()
>   Actual: false
> Expected: true
> Error: Error reading /proc/self/cgroup: Error(25): Inappropriate ioctl for 
> device{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to