haosdent created MESOS-6184:

             Summary: Change health check to use childHooks to enter the 
namespaces of the container
                 Key: MESOS-6184
                 URL: https://issues.apache.org/jira/browse/MESOS-6184
             Project: Mesos
          Issue Type: Improvement
            Reporter: haosdent
            Assignee: haosdent

To perform health checks for tasks, we need to enter the corresponding 
namespaces of the container. For now health check use custom clone to implement 
  return process::defaultClone([=]() -> int {
    if (taskPid.isSome()) {
      foreach (const string& ns, namespaces) {
        Try<Nothing> setns = ns::setns(taskPid.get(), ns);
        if (setns.isError()) {
    return func();

After the childHooks patches merged, we could change the health check to use 
childHooks to call {{setns}} and make {{process::defaultClone}} private again.  

This message was sent by Atlassian JIRA

Reply via email to