This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new efa23396645 branch-4.0: [enhancement](wg) print error code when delete 
cgroup path failed #58126 (#58139)
efa23396645 is described below

commit efa23396645a892305c6c945330efe5b9f44ee55
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Nov 19 17:31:30 2025 +0800

    branch-4.0: [enhancement](wg) print error code when delete cgroup path 
failed #58126 (#58139)
    
    Cherry-picked from #58126
    
    Co-authored-by: yiguolei <[email protected]>
---
 be/src/agent/cgroup_cpu_ctl.cpp | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/be/src/agent/cgroup_cpu_ctl.cpp b/be/src/agent/cgroup_cpu_ctl.cpp
index 06a38a989da..6404bf3fe55 100644
--- a/be/src/agent/cgroup_cpu_ctl.cpp
+++ b/be/src/agent/cgroup_cpu_ctl.cpp
@@ -292,7 +292,7 @@ Status 
CgroupCpuCtl::delete_unused_cgroup_path(std::set<uint64_t>& used_wg_ids)
         std::string wg_path = query_path + unused_wg_id;
         int ret = rmdir(wg_path.c_str());
         if (ret < 0) {
-            LOG(WARNING) << "rmdir failed, path=" << wg_path;
+            LOG(WARNING) << "remove cgroup path failed, path=" << wg_path << 
", error=" << ret;
             failed_count++;
         }
     }
@@ -317,7 +317,8 @@ Status CgroupV1CpuCtl::init() {
     if (access(_cgroup_v1_cpu_tg_path.c_str(), F_OK) != 0) {
         int ret = mkdir(_cgroup_v1_cpu_tg_path.c_str(), S_IRWXU);
         if (ret != 0) {
-            LOG(ERROR) << "cgroup v1 mkdir workload group failed, path=" << 
_cgroup_v1_cpu_tg_path;
+            LOG(WARNING) << "cgroup v1 make workload group dir failed, path="
+                         << _cgroup_v1_cpu_tg_path << ", error=" << ret;
             return Status::InternalError<false>("cgroup v1 mkdir workload 
group failed, path={}",
                                                 _cgroup_v1_cpu_tg_path);
         }
@@ -382,6 +383,8 @@ Status CgroupV2CpuCtl::init() {
     if (access(_cgroup_v2_query_wg_path.c_str(), F_OK) != 0) {
         int ret = mkdir(_cgroup_v2_query_wg_path.c_str(), S_IRWXU);
         if (ret != 0) {
+            LOG(WARNING) << "cgroup v2 make workload group dir failed, path="
+                         << _cgroup_v2_query_wg_path << ", error=" << ret;
             return Status::InternalError<false>("cgroup v2 mkdir wg failed, 
path={}",
                                                 _cgroup_v2_query_wg_path);
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to