----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/52827/#review152601 -----------------------------------------------------------
Patch looks great! Reviews applied: [52827] Passed command: export OS='ubuntu:14.04' BUILDTOOL='autotools' COMPILER='gcc' CONFIGURATION='--verbose' ENVIRONMENT='GLOG_v=1 MESOS_VERBOSE=1'; ./support/docker_build.sh - Mesos ReviewBot On Oct. 13, 2016, 2:38 p.m., Qian Zhang wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/52827/ > ----------------------------------------------------------- > > (Updated Oct. 13, 2016, 2:38 p.m.) > > > Review request for mesos and Jie Yu. > > > Bugs: MESOS-6360 > https://issues.apache.org/jira/browse/MESOS-6360 > > > Repository: mesos > > > Description > ------- > > Previously image layer rootfs path is in the format below regardless > of which backend is used. > <image_store_dir>/layers/<layer_id>/rootfs > 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. > <image_store_dir>/layers/<layer_id>/rootfs.<backend> > 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. > > > Diffs > ----- > > 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 > > Diff: https://reviews.apache.org/r/52827/diff/ > > > Testing > ------- > > make check > > > Thanks, > > Qian Zhang > >
