> On 四月 22, 2016, 7:41 a.m., haosdent huang wrote: > > src/slave/containerizer/mesos/isolators/docker/volume/isolator.cpp, line 171 > > <https://reviews.apache.org/r/45674/diff/3/?file=1356492#file1356492line171> > > > > Should wait for cleanup before return like: > > ``` > > list<Future<Nothing>> futures; > > foreach (const ContainerID& containerId, unknownOrphans) { > > futures.push_back(cleanup(containerId)); > > } > > > > return collect(futures) > > .then([]() -> Future<Nothing> { return Nothing(); }); > > ```
What would be the problem if did not wait for clean up here? The `cleanup()` already have some logic handling wait logic for `unmount`. - Guangya ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/45674/#review130052 ----------------------------------------------------------- On 四月 22, 2016, 7:15 a.m., Guangya Liu wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/45674/ > ----------------------------------------------------------- > > (Updated 四月 22, 2016, 7:15 a.m.) > > > Review request for mesos, Gilbert Song and Jie Yu. > > > Bugs: MESOS-5104 > https://issues.apache.org/jira/browse/MESOS-5104 > > > Repository: mesos > > > Description > ------- > > Implemented recover() for dvd isolator. > > > Diffs > ----- > > src/CMakeLists.txt f991743f1a467f24a786e925983390a411792327 > src/Makefile.am e024c6d65608a55765e527a8668c415723dcfcca > src/slave/containerizer/mesos/isolators/docker/volume/isolator.hpp > bedc687cc280d0b721fb84801039fd3614364cca > src/slave/containerizer/mesos/isolators/docker/volume/isolator.cpp > 915e5ae755a55a02b7dfcda88165f27346cad955 > src/slave/containerizer/mesos/isolators/docker/volume/state.hpp > bc0c3299f9f3e351aaa20652b784bccbfd40c1a5 > src/slave/containerizer/mesos/isolators/docker/volume/state.cpp > PRE-CREATION > > Diff: https://reviews.apache.org/r/45674/diff/ > > > Testing > ------- > > make > make check > > > Thanks, > > Guangya Liu > >
