[ 
https://issues.apache.org/jira/browse/MESOS-7903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jie Yu updated MESOS-7903:
--------------------------
    Target Version/s: 1.6.0  (was: 1.5.0)

> Include in the DefaultExecutor logs the output of timed out checks
> ------------------------------------------------------------------
>
>                 Key: MESOS-7903
>                 URL: https://issues.apache.org/jira/browse/MESOS-7903
>             Project: Mesos
>          Issue Type: Improvement
>            Reporter: Gastón Kleiman
>            Priority: Minor
>              Labels: check, default-executor
>
> Once the patches for https://issues.apache.org/jira/browse/MESOS-7861 land, 
> the output of successful and failed checks will be included in the 
> DefaultExecutor logs, but the output of timed out checks won't be included.
> Right now the checker process sends the {{LAUNCH_NESTED_CONTAINER_SESSION}} 
> requests using {{streamed=false}}. Libprocess will then convert the streaming 
> response into a body (non-streamed) response, completing the future returned 
> by {{Connection::send()}} only once the request has been fully received. The 
> checker will then read the whole process output from the response's body and 
> log it.
> However when a check times out, the checker will close the connection before 
> the full response is received. So the future returned by 
> {{Connection::send()}} will be failed, and the checker won't have access to 
> the response.
> In order to log the output of timed out checks, we will probably need to make 
> the checker send the launch request with {{streamed=true}}, and then make it 
> read the check output from the pipe of the streamed response.
> If we do that, we should probably turn the {{Future<tuple<string, string>> 
> getProcessIOData(...)}} method from {{api_tests.cpp}} into a helper method 
> and use it in {{checker_process.cpp}}.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to