This is an automated email from the ASF dual-hosted git repository.
bmahler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git
The following commit(s) were added to refs/heads/master by this push:
new b981a0579 [cgroups2] Fix error message to show the correct path.
b981a0579 is described below
commit b981a0579563057afdd2d7cb4108fed1dbbda60f
Author: Devin Leamy <[email protected]>
AuthorDate: Tue Apr 23 20:55:08 2024 +0000
[cgroups2] Fix error message to show the correct path.
The error message for failing to create the leaf cgroup was
printing the non-leaf cgroup, instead of the leaf cgroup.
---
src/slave/containerizer/mesos/isolators/cgroups2/cgroups2.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/slave/containerizer/mesos/isolators/cgroups2/cgroups2.cpp
b/src/slave/containerizer/mesos/isolators/cgroups2/cgroups2.cpp
index 911eadb1e..02c99fc8e 100644
--- a/src/slave/containerizer/mesos/isolators/cgroups2/cgroups2.cpp
+++ b/src/slave/containerizer/mesos/isolators/cgroups2/cgroups2.cpp
@@ -609,7 +609,7 @@ Future<Nothing> Cgroups2IsolatorProcess::_isolate(
Try<Nothing> assign = cgroups2::assign(info->cgroup_leaf, pid);
if (assign.isError()) {
return Failure("Failed to assign container '" + stringify(containerId) +
"'"
- " to cgroup '" + info->cgroup + "': " + assign.error());
+ " to cgroup '" + info->cgroup_leaf + "': " +
assign.error());
}
return Nothing();