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

Ship it!


Some minor feedback, but I think it's about ready to commit. I'll let 
@vinodkone (shepherd) give the final word.


src/slave/slave.cpp
<https://reviews.apache.org/r/22313/#comment86807>

    Remove the space before ',' since it should immediately follow the 
frameworkId.



src/tests/slave_tests.cpp
<https://reviews.apache.org/r/22313/#comment86808>

    Times(1) is unnecessary/implicit; remove.



src/tests/slave_tests.cpp
<https://reviews.apache.org/r/22313/#comment86817>

    Why change the resources in the offer itself?



src/tests/slave_tests.cpp
<https://reviews.apache.org/r/22313/#comment86818>

    Move this down to the createTask/tasks.push_back section. It's confusing 
just under the "Wait for offers" comment. Ditto for the other tests.



src/tests/slave_tests.cpp
<https://reviews.apache.org/r/22313/#comment86809>

    Times(1) is unnecessary



src/tests/slave_tests.cpp
<https://reviews.apache.org/r/22313/#comment86810>

    Unnecessary



src/tests/slave_tests.cpp
<https://reviews.apache.org/r/22313/#comment86811>

    Do you really need to settle before AND after you advance?



src/tests/slave_tests.cpp
<https://reviews.apache.org/r/22313/#comment86812>

    Unnecessary



src/tests/slave_tests.cpp
<https://reviews.apache.org/r/22313/#comment86813>

    Why are you modifying the offer object here?



src/tests/slave_tests.cpp
<https://reviews.apache.org/r/22313/#comment86814>

    Unnecessary



src/tests/slave_tests.cpp
<https://reviews.apache.org/r/22313/#comment86815>

    Comment should be updated to match this test.



src/tests/slave_tests.cpp
<https://reviews.apache.org/r/22313/#comment86816>

    I'm not sure the Times(2) is being enforced if you follow it with 
WillRepeatedly. Maybe you should do .WillOnce(RUNNING).WillOnce(RUNNING) 
instead.



src/tests/slave_tests.cpp
<https://reviews.apache.org/r/22313/#comment86819>

    Why change the resources offered?


- Adam B


On July 29, 2014, 2:05 p.m., Yifan Gu wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/22313/
> -----------------------------------------------------------
> 
> (Updated July 29, 2014, 2:05 p.m.)
> 
> 
> Review request for mesos, Ian Downes and Vinod Kone.
> 
> 
> Bugs: MESOS-886
>     https://issues.apache.org/jira/browse/MESOS-886
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> Added __runTask() to wait for the completion of containerizer->update() and 
> check the result before sending RunTaskMessage.
> 
> 
> Diffs
> -----
> 
>   src/slave/slave.hpp a896bb6 
>   src/slave/slave.cpp 1d56918 
>   src/tests/slave_tests.cpp e45255a 
> 
> Diff: https://reviews.apache.org/r/22313/diff/
> 
> 
> Testing
> -------
> 
> SlaveTest, CancelTaskIfContainerizerFails
> 
> Which tests that if the containerizer->update() return a Failure, the task 
> won't be launched and the scheduler will get TASK_LOST.
> 
> make check
> 
> 
> File Attachments
> ----------------
> 
> framework will exit
>   
> https://reviews.apache.org/media/uploaded/files/2014/06/18/fbe73273-7aa9-4faa-b1c5-003ab03042a9__issue-886.diff
> log
>   
> https://reviews.apache.org/media/uploaded/files/2014/06/18/84d801a0-5c2a-4bb9-901b-e1962031461c__log
> 
> 
> Thanks,
> 
> Yifan Gu
> 
>

Reply via email to