cf-natali commented on a change in pull request #355: Handle EBUSY when 
destroying a cgroup.
URL: https://github.com/apache/mesos/pull/355#discussion_r408645634
 
 

 ##########
 File path: src/tests/containerizer/cgroups_isolator_tests.cpp
 ##########
 @@ -1489,7 +1489,7 @@ TEST_F(CgroupsIsolatorTest, 
ROOT_CGROUPS_CreateRecursively)
   // We should remove cgroups_root after the slave being started
   // because slave will create cgroups_root dir during startup
   // if it's not present.
-  ASSERT_SOME(cgroups::remove(hierarchy.get(), flags.cgroups_root));
+  ASSERT_SOME(os::rmdir(path::join(hierarchy.get(), flags.cgroups_root)));
 
 Review comment:
   > Please, specify a second parameter recursive = false here and elsewhere:
   
   Done.
   
   > I'd recommend running tests under root before sending a patch:
   
   Thanks - it's not mentioned in the contribution guide, I'll submit a PR to 
update it.
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to