Qian Zhang created MESOS-9231:
---------------------------------

             Summary: `docker inspect` may return an incomplete 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.6.1, 1.6.0, 1.5.1, 1.5.0, 1.4.2, 1.4.1, 1.4.0
            Reporter: Qian Zhang
            Assignee: Qian Zhang


In the Docker container (`src/docker/executor`), we run `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 incomplete 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