You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Jie Yu <yu...@gmail.com> on 2017/08/22 03:32:14 UTC

Re: Review Request 60764: Refactored isolator dependency checking.

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


Fix it, then Ship it!




Thanks for the cleanup!


src/slave/containerizer/mesos/containerizer.cpp
Lines 148 (patched)
<https://reviews.apache.org/r/60764/#comment259440>

    Let's just inline this method. There is only one user for this method.



src/slave/containerizer/mesos/containerizer.cpp
Line 154 (original), 169 (patched)
<https://reviews.apache.org/r/60764/#comment259441>

    Can you create a LinkedHashset (similar to LinkedHashmap) in stout which preserve the insertion order. this solves one issues about the ordering of the isolators is not preserved.
    
    I would at least add a TODO here (i do wish you can follow up :))



src/slave/containerizer/mesos/containerizer.cpp
Lines 182-184 (original), 203-208 (patched)
<https://reviews.apache.org/r/60764/#comment259442>

    The indentation should be like the following:
    ```
    switch (std::count_if(
        isolations->begin(),
        isolations->end(),
        [](...) {
        })) {
    }
    ```
    
    similar to what we did for other statements:
    ```
    int foo = func(
        param1,
        param2);
    ```


- Jie Yu


On July 11, 2017, 11:13 a.m., James Peach wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/60764/
> -----------------------------------------------------------
> 
> (Updated July 11, 2017, 11:13 a.m.)
> 
> 
> Review request for mesos, Qian Zhang and Jiang Yan Xu.
> 
> 
> Bugs: MESOS-7675
>     https://issues.apache.org/jira/browse/MESOS-7675
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Refactored the isolator dependency checks to immediately tokenize
> the isolator string, which makes it easier to check various consistency
> conditions.
> 
> 
> Diffs
> -----
> 
>   src/slave/containerizer/mesos/containerizer.cpp ff192bb085f3554ad1b1f20fb73bf827bf04ef13 
> 
> 
> Diff: https://reviews.apache.org/r/60764/diff/7/
> 
> 
> Testing
> -------
> 
> make check (Fedora 26)
> 
> 
> Thanks,
> 
> James Peach
> 
>


Re: Review Request 60764: Refactored isolator dependency checking.

Posted by James Peach <jp...@apache.org>.

> On Aug. 22, 2017, 3:32 a.m., Jie Yu wrote:
> > src/slave/containerizer/mesos/containerizer.cpp
> > Line 154 (original), 169 (patched)
> > <https://reviews.apache.org/r/60764/diff/7/?file=1796964#file1796964line169>
> >
> >     Can you create a LinkedHashset (similar to LinkedHashmap) in stout which preserve the insertion order. this solves one issues about the ordering of the isolators is not preserved.
> >     
> >     I would at least add a TODO here (i do wish you can follow up :))

Added a TODO referring to [MESOS-7643](https://issues.apache.org/jira/browse/MESOS-7643)


- James


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


On July 11, 2017, 11:13 a.m., James Peach wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/60764/
> -----------------------------------------------------------
> 
> (Updated July 11, 2017, 11:13 a.m.)
> 
> 
> Review request for mesos, Qian Zhang and Jiang Yan Xu.
> 
> 
> Bugs: MESOS-7675
>     https://issues.apache.org/jira/browse/MESOS-7675
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Refactored the isolator dependency checks to immediately tokenize
> the isolator string, which makes it easier to check various consistency
> conditions.
> 
> 
> Diffs
> -----
> 
>   src/slave/containerizer/mesos/containerizer.cpp ff192bb085f3554ad1b1f20fb73bf827bf04ef13 
> 
> 
> Diff: https://reviews.apache.org/r/60764/diff/7/
> 
> 
> Testing
> -------
> 
> make check (Fedora 26)
> 
> 
> Thanks,
> 
> James Peach
> 
>