[ 
https://issues.apache.org/jira/browse/MESOS-3293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14743578#comment-14743578
 ] 

haosdent commented on MESOS-3293:
---------------------------------

How about change it like this
{code}
-  vector<string> argv(3);
-  argv[0] = "sh";
-  argv[1] = "-c";
-  argv[2] = "while true; do sleep 1; done;";
+  vector<string> argv(1);
+  argv[0] = "cat";

   Try<pid_t> pid = launcher.get()->fork(
       containerId,
-      "sh",
+      "cat",
{code}

So cat would blocking for waiting input. And only one process and thread.

> Failing ROOT_ tests on CentOS 7.1 - LimitedCpuIsolatorTest
> ----------------------------------------------------------
>
>                 Key: MESOS-3293
>                 URL: https://issues.apache.org/jira/browse/MESOS-3293
>             Project: Mesos
>          Issue Type: Bug
>          Components: containerization, docker, test
>    Affects Versions: 0.23.0, 0.24.0
>         Environment: CentOS Linux release 7.1
> Linux 3.10.0
>            Reporter: Marco Massenzio
>            Assignee: Jian Qiu
>            Priority: Blocker
>              Labels: mesosphere, tech-debt
>         Attachments: 20150818-mesos-tests.log
>
>
> h2. LimitedCpuIsolatorTest.ROOT_CGROUPS_Pids_and_Tids
> This is one of several ROOT failing tests: we want to track them 
> *individually* and for each of them decide whether to:
> * fix;
> * remove; OR
> * redesign.
> (full verbose logs attached)
> h2. Steps to Reproduce
> Completely cleaned the build, removed directory, clean pull from {{master}} 
> (SHA: {{fb93d93}}) - same results, 9 failed tests:
> {noformat}
> [==========] 751 tests from 114 test cases ran. (231218 ms total)
> [  PASSED  ] 742 tests.
> [  FAILED  ] 9 tests, listed below:
> [  FAILED  ] LimitedCpuIsolatorTest.ROOT_CGROUPS_Pids_and_Tids
> [  FAILED  ] UserCgroupIsolatorTest/1.ROOT_CGROUPS_UserCgroup, where 
> TypeParam = mesos::internal::slave::CgroupsCpushareIsolatorProcess
> [  FAILED  ] ContainerizerTest.ROOT_CGROUPS_BalloonFramework
> [  FAILED  ] LinuxFilesystemIsolatorTest.ROOT_ChangeRootFilesystem
> [  FAILED  ] LinuxFilesystemIsolatorTest.ROOT_VolumeFromSandbox
> [  FAILED  ] LinuxFilesystemIsolatorTest.ROOT_VolumeFromHost
> [  FAILED  ] LinuxFilesystemIsolatorTest.ROOT_VolumeFromHostSandboxMountPoint
> [  FAILED  ] 
> LinuxFilesystemIsolatorTest.ROOT_PersistentVolumeWithRootFilesystem
> [  FAILED  ] MesosContainerizerLaunchTest.ROOT_ChangeRootfs
>  9 FAILED TESTS
>   YOU HAVE 10 DISABLED TESTS
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to