mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilbert Song (JIRA)" <>
Subject [jira] [Commented] (MESOS-8576) Improve discard handling of 'Docker::inspect()'
Date Fri, 02 Mar 2018 23:59:00 GMT


Gilbert Song commented on MESOS-8576:

commit 8346ab0c812559ef73e1bbd30718f6c74a023079
Author: Greg Mann <>
Date:   Fri Mar 2 15:39:58 2018 -0800

    Avoided orphan subprocess in the Docker library.

    This patch ensures that `Docker::inspect` will not leave orphan
    subprocesses behind.



> Improve discard handling of 'Docker::inspect()'
> -----------------------------------------------
>                 Key: MESOS-8576
>                 URL:
>             Project: Mesos
>          Issue Type: Improvement
>          Components: containerization, docker
>    Affects Versions: 1.5.0
>            Reporter: Greg Mann
>            Assignee: Greg Mann
>            Priority: Major
>              Labels: mesosphere
>             Fix For: 1.6.0
> In the call path of {{Docker::inspect()}}, each continuation currently checks if {{promise->future().hasDiscard()}},
where the {{promise}} is associated with the output of the {{docker inspect}} call. However,
if the call to {{docker inspect}} becomes hung indefinitely, then continuations are never
invoked, and a subsequent discard of the returned {{Future}} will have no effect. We should
add proper {{onDiscard}} handling to that {{Future}} so that appropriate cleanup is performed
in such cases.

This message was sent by Atlassian JIRA

View raw message