You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by Vinod Kone <vi...@gmail.com> on 2015/04/04 01:40:52 UTC
Review Request 32843: Updated KILL to include SlaveID.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32843/
-----------------------------------------------------------
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 05be911734b8d70c9fa5f3b4a275e8b610621fc5
src/master/master.cpp 618db68ee4163b06e479cf3413eda4b63c9c5a4b
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.
Posted by Vinod Kone <vi...@gmail.com>.
> On April 8, 2015, 5:52 p.m., Alexander Rukletsov wrote:
> > I'm still not sure whether it's necessary to provide `SlaveID` in the kill request. But I'd better comment on MESOS-1127 instead.
made SlaveID optional like we did for Reconcile for backwards compatibility.
- Vinod
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32843/#review79373
-----------------------------------------------------------
On April 3, 2015, 11:40 p.m., Vinod Kone wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32843/
> -----------------------------------------------------------
>
> (Updated April 3, 2015, 11: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 05be911734b8d70c9fa5f3b4a275e8b610621fc5
> src/master/master.cpp 618db68ee4163b06e479cf3413eda4b63c9c5a4b
> 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.
Posted by Alexander Rukletsov <ru...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32843/#review79373
-----------------------------------------------------------
I'm still not sure whether it's necessary to provide `SlaveID` in the kill request. But I'd better comment on MESOS-1127 instead.
src/tests/scheduler_tests.cpp
<https://reviews.apache.org/r/32843/#comment128649>
s/> >/>> here and below.
- Alexander Rukletsov
On April 3, 2015, 11:40 p.m., Vinod Kone wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32843/
> -----------------------------------------------------------
>
> (Updated April 3, 2015, 11: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 05be911734b8d70c9fa5f3b4a275e8b610621fc5
> src/master/master.cpp 618db68ee4163b06e479cf3413eda4b63c9c5a4b
> 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.
Posted by Alexander Rukletsov <ru...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32843/#review80990
-----------------------------------------------------------
Ship it!
Modulo Ben's comments.
- Alexander Rukletsov
On April 20, 2015, 8:02 p.m., Vinod Kone wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32843/
> -----------------------------------------------------------
>
> (Updated April 20, 2015, 8:02 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 c10e7c08c191acef9d31d98018a47a2a952a4dfc
> src/master/master.cpp e30b951eda2b3b0d5b2a80716f0b32c6bbe041bc
> 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.
Posted by Vinod Kone <vi...@gmail.com>.
> On April 22, 2015, 10:20 p.m., Ben Mahler wrote:
> > src/master/master.cpp, lines 2731-2732
> > <https://reviews.apache.org/r/32843/diff/4/?file=939952#file939952line2731>
> >
> > 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
> > <https://reviews.apache.org/r/32843/diff/4/?file=939952#file939952line2772>
> >
> > 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
> > <https://reviews.apache.org/r/32843/diff/4/?file=939952#file939952line2773>
> >
> > Whoops, remove the semi-colon?
done.
> On April 22, 2015, 10:20 p.m., Ben Mahler wrote:
> > src/tests/scheduler_tests.cpp, line 417
> > <https://reviews.apache.org/r/32843/diff/4/?file=939954#file939954line417>
> >
> > 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.
Posted by Ben Mahler <be...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32843/#review81222
-----------------------------------------------------------
Ship it!
src/master/master.cpp
<https://reviews.apache.org/r/32843/#comment131473>
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
<https://reviews.apache.org/r/32843/#comment131471>
You may want to avoid taking a const reference to the temporary here?
src/master/master.cpp
<https://reviews.apache.org/r/32843/#comment131475>
Will this be a BadRequest so schedulers can detect the issue? Maybe a TODO?
src/master/master.cpp
<https://reviews.apache.org/r/32843/#comment131474>
Whoops, remove the semi-colon?
src/tests/scheduler_tests.cpp
<https://reviews.apache.org/r/32843/#comment131476>
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.
Posted by Vinod Kone <vi...@gmail.com>.
-----------------------------------------------------------
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.
Posted by Vinod Kone <vi...@gmail.com>.
-----------------------------------------------------------
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
Re: Review Request 32843: Updated KILL to include SlaveID.
Posted by Vinod Kone <vi...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32843/
-----------------------------------------------------------
(Updated April 21, 2015, 10:57 p.m.)
Review request for mesos and Ben Mahler.
Changes
-------
benm's comments.
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 c10e7c08c191acef9d31d98018a47a2a952a4dfc
src/master/master.cpp b1093bb867eb8624740f3d094cef2c23405a18b6
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.
Posted by Vinod Kone <vi...@gmail.com>.
> On April 20, 2015, 10:46 p.m., Ben Mahler wrote:
> > src/master/master.cpp, line 2736
> > <https://reviews.apache.org/r/32843/diff/2/?file=936875#file936875line2736>
> >
> > It looks like we can do this without having the extra `killTask` method: just have this convert to the `Kill` `Call` and call `kill`.
> >
> > This is the aproach we used in `launchTasks` as well by converting to an `Accept` `Call`, so seems nice to keep things consistent?
Yes, I can do that know because SlaveID is optional. Fixed.
> On April 20, 2015, 10:46 p.m., Ben Mahler wrote:
> > src/master/master.cpp, line 2792
> > <https://reviews.apache.org/r/32843/diff/2/?file=936875#file936875line2792>
> >
> > TASK_ERROR is a terminal state, right? What does it mean to send TASK_ERROR but leave the task running?
> >
> > For example, a reconciliation request with the wrong slave id will _not_ reply with TASK_ERROR like we do here, since we ignore the slave id when we can find the task.
good point. will just return here. this should result ina HTTP 400 Bad Request eventually and not TASK_ERROR.
- Vinod
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32843/#review80853
-----------------------------------------------------------
On April 21, 2015, 10:57 p.m., Vinod Kone wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32843/
> -----------------------------------------------------------
>
> (Updated April 21, 2015, 10:57 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 c10e7c08c191acef9d31d98018a47a2a952a4dfc
> src/master/master.cpp b1093bb867eb8624740f3d094cef2c23405a18b6
> 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.
Posted by Ben Mahler <be...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32843/#review80853
-----------------------------------------------------------
src/master/master.cpp
<https://reviews.apache.org/r/32843/#comment130964>
It looks like we can do this without having the extra `killTask` method: just have this convert to the `Kill` `Call` and call `kill`.
This is the aproach we used in `launchTasks` as well by converting to an `Accept` `Call`, so seems nice to keep things consistent?
src/master/master.cpp
<https://reviews.apache.org/r/32843/#comment130968>
TASK_ERROR is a terminal state, right? What does it mean to send TASK_ERROR but leave the task running?
For example, a reconciliation request with the wrong slave id will _not_ reply with TASK_ERROR like we do here, since we ignore the slave id when we can find the task.
- Ben Mahler
On April 20, 2015, 8:02 p.m., Vinod Kone wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32843/
> -----------------------------------------------------------
>
> (Updated April 20, 2015, 8:02 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 c10e7c08c191acef9d31d98018a47a2a952a4dfc
> src/master/master.cpp e30b951eda2b3b0d5b2a80716f0b32c6bbe041bc
> 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.
Posted by Vinod Kone <vi...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32843/
-----------------------------------------------------------
(Updated April 20, 2015, 8:02 p.m.)
Review request for mesos and Ben Mahler.
Changes
-------
Made SLAVEID optional in KILL.
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 c10e7c08c191acef9d31d98018a47a2a952a4dfc
src/master/master.cpp e30b951eda2b3b0d5b2a80716f0b32c6bbe041bc
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