Re: Review Request 32843: Updated KILL to include SlaveID.

2015-04-22 Thread Vinod Kone

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

(Updated April 23, 2015, 2:51 a.m.)


Review request for mesos and Ben Mahler.


Changes
---

Benm's. NNFR.


Bugs: MESOS-1127
https://issues.apache.org/jira/browse/MESOS-1127


Repository: mesos


Description
---

Having SlaveID will help us do better reconciliation when the task is not 
found. Also, updated master to handle Call::Kill.


Diffs (updated)
-

  include/mesos/scheduler/scheduler.proto 
783a63ad1cc0edd86605d638046fb959cb6e97e8 
  src/master/master.hpp 550d2c50cd01aa5830a7e7e03ab4a0240c221b15 
  src/master/master.cpp f3462d15005e24ab28e8265484b0d3810f21bd47 
  src/scheduler/scheduler.cpp bd9fced0f58aa3bc0ff147dbefb77cea4734a79e 
  src/tests/scheduler_tests.cpp 4a89a7a88b50bb8c254f5076661ce07ac9fc7657 

Diff: https://reviews.apache.org/r/32843/diff/


Testing
---

make check


Thanks,

Vinod Kone



Re: Review Request 32843: Updated KILL to include SlaveID.

2015-04-22 Thread Vinod Kone


> On April 22, 2015, 10:20 p.m., Ben Mahler wrote:
> > src/master/master.cpp, lines 2731-2732
> > 
> >
> > You may want to avoid taking a const reference to the temporary here?

fixed.


> On April 22, 2015, 10:20 p.m., Ben Mahler wrote:
> > src/master/master.cpp, line 2772
> > 
> >
> > Will this be a BadRequest so schedulers can detect the issue? Maybe a 
> > TODO?

done.


> On April 22, 2015, 10:20 p.m., Ben Mahler wrote:
> > src/master/master.cpp, line 2773
> > 
> >
> > Whoops, remove the semi-colon?

done.


> On April 22, 2015, 10:20 p.m., Ben Mahler wrote:
> > src/tests/scheduler_tests.cpp, line 417
> > 
> >
> > Did you want this extra newline?

nope. fixed.


- Vinod


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


On April 22, 2015, 9:40 p.m., Vinod Kone wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32843/
> ---
> 
> (Updated April 22, 2015, 9:40 p.m.)
> 
> 
> Review request for mesos and Ben Mahler.
> 
> 
> Bugs: MESOS-1127
> https://issues.apache.org/jira/browse/MESOS-1127
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> Having SlaveID will help us do better reconciliation when the task is not 
> found. Also, updated master to handle Call::Kill.
> 
> 
> Diffs
> -
> 
>   include/mesos/scheduler/scheduler.proto 
> 783a63ad1cc0edd86605d638046fb959cb6e97e8 
>   src/master/master.hpp 550d2c50cd01aa5830a7e7e03ab4a0240c221b15 
>   src/master/master.cpp f3462d15005e24ab28e8265484b0d3810f21bd47 
>   src/scheduler/scheduler.cpp 584b042e32865fdf875bf41ebcfb7f9c327d882a 
>   src/tests/scheduler_tests.cpp 4a89a7a88b50bb8c254f5076661ce07ac9fc7657 
> 
> Diff: https://reviews.apache.org/r/32843/diff/
> 
> 
> Testing
> ---
> 
> make check
> 
> 
> Thanks,
> 
> Vinod Kone
> 
>



Re: Review Request 32843: Updated KILL to include SlaveID.

2015-04-22 Thread Ben Mahler

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

Ship it!



src/master/master.cpp


Does this variable buy us much vs `kill.task_id()`? For example, we don't 
do this for framework->id(), I'm guessing you did it to be similar to slaveId?



src/master/master.cpp


You may want to avoid taking a const reference to the temporary here?



src/master/master.cpp


Will this be a BadRequest so schedulers can detect the issue? Maybe a TODO?



src/master/master.cpp


Whoops, remove the semi-colon?



src/tests/scheduler_tests.cpp


Did you want this extra newline?


- Ben Mahler


On April 22, 2015, 9:40 p.m., Vinod Kone wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32843/
> ---
> 
> (Updated April 22, 2015, 9:40 p.m.)
> 
> 
> Review request for mesos and Ben Mahler.
> 
> 
> Bugs: MESOS-1127
> https://issues.apache.org/jira/browse/MESOS-1127
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> Having SlaveID will help us do better reconciliation when the task is not 
> found. Also, updated master to handle Call::Kill.
> 
> 
> Diffs
> -
> 
>   include/mesos/scheduler/scheduler.proto 
> 783a63ad1cc0edd86605d638046fb959cb6e97e8 
>   src/master/master.hpp 550d2c50cd01aa5830a7e7e03ab4a0240c221b15 
>   src/master/master.cpp f3462d15005e24ab28e8265484b0d3810f21bd47 
>   src/scheduler/scheduler.cpp 584b042e32865fdf875bf41ebcfb7f9c327d882a 
>   src/tests/scheduler_tests.cpp 4a89a7a88b50bb8c254f5076661ce07ac9fc7657 
> 
> Diff: https://reviews.apache.org/r/32843/diff/
> 
> 
> Testing
> ---
> 
> make check
> 
> 
> Thanks,
> 
> Vinod Kone
> 
>



Re: Review Request 32843: Updated KILL to include SlaveID.

2015-04-22 Thread Vinod Kone

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

(Updated April 22, 2015, 9:40 p.m.)


Review request for mesos and Ben Mahler.


Changes
---

rebased. NNFR.


Bugs: MESOS-1127
https://issues.apache.org/jira/browse/MESOS-1127


Repository: mesos


Description
---

Having SlaveID will help us do better reconciliation when the task is not 
found. Also, updated master to handle Call::Kill.


Diffs (updated)
-

  include/mesos/scheduler/scheduler.proto 
783a63ad1cc0edd86605d638046fb959cb6e97e8 
  src/master/master.hpp 550d2c50cd01aa5830a7e7e03ab4a0240c221b15 
  src/master/master.cpp f3462d15005e24ab28e8265484b0d3810f21bd47 
  src/scheduler/scheduler.cpp 584b042e32865fdf875bf41ebcfb7f9c327d882a 
  src/tests/scheduler_tests.cpp 4a89a7a88b50bb8c254f5076661ce07ac9fc7657 

Diff: https://reviews.apache.org/r/32843/diff/


Testing
---

make check


Thanks,

Vinod Kone