mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Qian Zhang <>
Subject Review Request 52827: Added backend suffix to image layer rootfs path.
Date Thu, 13 Oct 2016 14:38:09 GMT

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

Review request for mesos and Jie Yu.

Bugs: MESOS-6360

Repository: mesos


Previously image layer rootfs path is in the format below regardless
of which backend is used.
This introduced an issue: when agent is restarted with a different
backend, we will wrongly handle the whiteout files since different
backends(e.g., aufs and overlay) have different whiteout standard.

In this commit, we added backend suffix to image layer rootfs path
for non-aufs backend like below, so each backend will only handle
its own image layers.
For aufs backend, it is still in the previous format, this is to
handle backward compatibility.

So the expected result of this commit is:
1. If user switches backend when restarting agent, all the image
layers of the previous backend in the store will just be ignored.
2. In the upgrade case, if user starts a new version of Mesos agent
with a non-aufs backend (i.e., copy/bind/overlay), then all the
image layers in the store will just be ignored, but if user starts
the agent with aufs backend, all the image layers in the store can
still be used.


  src/slave/containerizer/mesos/provisioner/docker/local_puller.cpp 9b09dca5cd8f9e60a90cf574300b250eb18ede35

  src/slave/containerizer/mesos/provisioner/docker/metadata_manager.cpp 6456d90220a4026696a04f9969763cf682464353

  src/slave/containerizer/mesos/provisioner/docker/paths.hpp 949e0c16a361f22b00e267fcf81093690327041f

  src/slave/containerizer/mesos/provisioner/docker/paths.cpp a5cc952072274c61e8c515e8b1b7ea563344e950

  src/slave/containerizer/mesos/provisioner/docker/registry_puller.cpp 1e2cc2dda3518d99ef1ad06e2b8ea7f78a4dcf72

  src/slave/containerizer/mesos/provisioner/docker/store.cpp 52b9ea934a1dbe3312b8f08f5da8085e9e306de5

  src/tests/containerizer/provisioner_docker_tests.cpp 10fbc4149ac2e7503ffe7f2746fbd0e14a2365b4



make check


Qian Zhang

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