mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chun-Hung Hsiao <>
Subject Re: Review Request 60846: Preventing agent recovery failing from unsuccessful `docker rm`.
Date Fri, 14 Jul 2017 17:37:50 GMT

This is an automatically generated e-mail. To reply, visit:

(Updated July 14, 2017, 5:37 p.m.)

Review request for mesos, Gilbert Song and Jie Yu.


Removed unnecessary `defer`.

Bugs: MESOS-7777

Repository: mesos


This patch skips all failures returned from `Docker::rm` due to "failed
to remove root filesystem" during agent recovery, then schedule retries
with an exponential backoff, and go ahead to unmount the persistent
volumes for all Docker containers.

The unit test `DockerContainerizerTest.ROOT_DOCKER_RecoverWithRmFails`
mocks `Docker::rm` to return 4 failures before actually perform
`docker rm` to test if the exponential backoff works correctly.

Diffs (updated)

  src/docker/docker.cpp 8ca0c68836ea5d1a1186e79942f6daccf6c6da46 
  src/slave/constants.hpp 435c37e28987119c4ef43c9dad61ac052020acd8 
  src/slave/containerizer/docker.cpp 5cd3b6d95ff78fb114a06d49122b7161a6688646 
  src/slave/flags.hpp 858876fe86cc50cb3655b06071db6450916cb814 
  src/slave/flags.cpp 74df647cc4f1161d061f0349011ce070db3a9789 
  src/tests/containerizer/docker_containerizer_tests.cpp 1e85a79f812399270575ea4a64db10e72f40e648

  src/tests/mock_docker.hpp 59873646be494c8fe6aebf5ede595d77e3ac4cae 
  src/tests/mock_docker.cpp 0ed63862f5c07935f088282157979eafdc814084 




sudo make check


Chun-Hung Hsiao

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message