> On Aug. 25, 2016, 10:57 a.m., Jie Yu wrote:
> > src/slave/containerizer/mesos/provisioner/provisioner.cpp, line 204
> > <https://reviews.apache.org/r/51343/diff/1/?file=1482198#file1482198line204>
> >
> >     Why this change? Where is the error checking?
> 
> Gilbert Song wrote:
>     I removed the error check because it seems redundant to me. We construct 
> the `backends` hashmap from `Backend::Create()`. The backends information 
> from the filesystem (returned from `listContainerRootfses`) should only 
> contain the backends that are included in `Backend::create()`. So this error 
> should be never triggered.

`listContainerRootfses` only seems to glean info from the directory structure.  
That means, if the result of `Backend::create()` changes (say, you disable 
overlayfs support and restart the agent), we'd no longer have the same behavior 
here.


- Joseph


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51343/#review146820
-----------------------------------------------------------


On Aug. 29, 2016, 2:20 p.m., Gilbert Song wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/51343/
> -----------------------------------------------------------
> 
> (Updated Aug. 29, 2016, 2:20 p.m.)
> 
> 
> Review request for mesos, Benjamin Hindman, Artem Harutyunyan, Jie Yu, Joseph 
> Wu, and Kevin Klues.
> 
> 
> Bugs: MESOS-6067
>     https://issues.apache.org/jira/browse/MESOS-6067
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This patch removed the unnecessary loop to construct an identical
> hashmap for info->rootfses.
> 
> 
> Diffs
> -----
> 
>   src/slave/containerizer/mesos/provisioner/provisioner.cpp 
> 8e35ff49ec99a242e764095dcfbb541c5e41ec71 
> 
> Diff: https://reviews.apache.org/r/51343/diff/
> 
> 
> Testing
> -------
> 
> make check
> 
> 
> Thanks,
> 
> Gilbert Song
> 
>

Reply via email to