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

Qian Zhang commented on MESOS-9231:
-----------------------------------

commit d74779eba1ba1d6583c76052c38a98668847eb68
Author: Qian Zhang 
Date: Sat Sep 29 11:07:46 2018 +0800

Updated mininal supported Docker version from 1.0.0 to 1.8.0.
 
 The reason that we need Docker 1.8.0+ is, for `docker inspect` command,
 we need to specify the option `--type=container` which was added to the
 `docker inspect` command starting from Docker 1.8.0.
 
 Review: https://reviews.apache.org/r/68882

commit f1ca2dbbbebe11bf6a222d95efa3fd73da760e6a
Author: Qian Zhang 
Date: Wed Sep 26 08:32:51 2018 +0800

Specified `--type=container` for `docker inspect` command.
 
 Without `--type` option, `docker inspect` is generic and will match
 against any object types. However in our case, we only care about
 Docker container rather than any other object types, so we need to
 add `--type=container` so that `docker inspect` will only match Docker
 container.
 
 Review: https://reviews.apache.org/r/68872

commit 7aaef1979a10de5e11548123d1985474b143854b
Author: Qian Zhang 
Date: Sun Sep 30 09:55:12 2018 +0800

Added MESOS-9231 in CHANGELOG and updated upgrades.md.
 
 Review: https://reviews.apache.org/r/68887

> `docker inspect` may return an unexpected result to Docker executor due to a 
> race condition
> -------------------------------------------------------------------------------------------
>
>                 Key: MESOS-9231
>                 URL: https://issues.apache.org/jira/browse/MESOS-9231
>             Project: Mesos
>          Issue Type: Bug
>    Affects Versions: 1.4.2, 1.5.1, 1.6.1
>            Reporter: Qian Zhang
>            Assignee: Qian Zhang
>            Priority: Major
>             Fix For: 1.7.1
>
>
> In the Docker container (`src/docker/executor`), we call `docker inspect` 
> right after `docker run` 
> ([https://github.com/apache/mesos/blob/1.6.0/src/docker/executor.cpp#L230:L242),]
>  there is a small chance for `docker inspect` to return an unexpected result 
> which does not contain the Docker container ID, so we will see an error like 
> below:
> {code:java}
> E0830 00:09:37.303499 2428 executor.cpp:385] Failed to inspect container 
> 'mesos-eaa4f455-0a2c-47ff-bf98-8bd0ad243740': Unable to create container: 
> Unable to find Id in container
> {code}
> If that happens, Docker executor will not send `TASK_RUNNING` status update, 
> so the task will be stuck at `TASK_STARTING`.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to