You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Gaston Kleiman <ga...@mesosphere.io> on 2018/02/17 00:25:42 UTC
Review Request 65693: Made the default executor fail kills if the
response isn't "200 OK".
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/65693/
-----------------------------------------------------------
Review request for mesos, Joseph Wu, Qian Zhang, and Vinod Kone.
Bugs: MESOS-8530
https://issues.apache.org/jira/browse/MESOS-8530
Repository: mesos
Description
-------
The default executor's `Future<Nothing> kill(const ContainerID&, int)`
method returns `Nothing()` if the agent responded to the
`KILL_NESTED_CONTAINER` call, regardless of the response.
This patch updates the method, so that it returns a failure if the
response is not "200 OK".
Diffs
-----
src/launcher/default_executor.cpp 8720dada8bc6ca66f9e0fec6dc265eda3dcc7407
Diff: https://reviews.apache.org/r/65693/diff/1/
Testing
-------
`sudo bin/mesos-tests.sh` on GNU/Linux
Thanks,
Gaston Kleiman
Re: Review Request 65693: Made the default executor fail kills if the
response isn't "200 OK".
Posted by Gaston Kleiman <ga...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/65693/
-----------------------------------------------------------
(Updated March 16, 2018, 12:53 p.m.)
Review request for mesos, Joseph Wu, Qian Zhang, and Vinod Kone.
Changes
-------
Rebase.
Bugs: MESOS-8530
https://issues.apache.org/jira/browse/MESOS-8530
Repository: mesos
Description
-------
The default executor's `Future<Nothing> kill(const ContainerID&, int)`
method returns `Nothing()` if the agent responded to the
`KILL_NESTED_CONTAINER` call, regardless of the response.
This patch updates the method, so that it returns a failure if the
response is not "200 OK".
Diffs (updated)
-----
src/launcher/default_executor.cpp 906836f3b8e0af79d7c61f90fd8a95f193b26e84
Diff: https://reviews.apache.org/r/65693/diff/3/
Changes: https://reviews.apache.org/r/65693/diff/2-3/
Testing
-------
`sudo bin/mesos-tests.sh` on GNU/Linux
Thanks,
Gaston Kleiman
Re: Review Request 65693: Made the default executor fail kills if the
response isn't "200 OK".
Posted by Gaston Kleiman <ga...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/65693/
-----------------------------------------------------------
(Updated March 7, 2018, 6:06 p.m.)
Review request for mesos, Joseph Wu, Qian Zhang, and Vinod Kone.
Changes
-------
Improved style.
Bugs: MESOS-8530
https://issues.apache.org/jira/browse/MESOS-8530
Repository: mesos
Description
-------
The default executor's `Future<Nothing> kill(const ContainerID&, int)`
method returns `Nothing()` if the agent responded to the
`KILL_NESTED_CONTAINER` call, regardless of the response.
This patch updates the method, so that it returns a failure if the
response is not "200 OK".
Diffs (updated)
-----
src/launcher/default_executor.cpp 906836f3b8e0af79d7c61f90fd8a95f193b26e84
Diff: https://reviews.apache.org/r/65693/diff/2/
Changes: https://reviews.apache.org/r/65693/diff/1-2/
Testing
-------
`sudo bin/mesos-tests.sh` on GNU/Linux
Thanks,
Gaston Kleiman
Re: Review Request 65693: Made the default executor fail kills if the
response isn't "200 OK".
Posted by Joseph Wu <jo...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/65693/#review198670
-----------------------------------------------------------
What-is-basically-a-style-nit:
src/launcher/default_executor.cpp
Lines 1172-1176 (original), 1174-1183 (patched)
<https://reviews.apache.org/r/65693/#comment278914>
If you start the lambda with:
```
[=](const Response& response) -> Future<Nothing>
```
Then you won't need to wrap the two return statements with `Future<Nothing>(...)`.
- Joseph Wu
On Feb. 16, 2018, 4:25 p.m., Gaston Kleiman wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/65693/
> -----------------------------------------------------------
>
> (Updated Feb. 16, 2018, 4:25 p.m.)
>
>
> Review request for mesos, Joseph Wu, Qian Zhang, and Vinod Kone.
>
>
> Bugs: MESOS-8530
> https://issues.apache.org/jira/browse/MESOS-8530
>
>
> Repository: mesos
>
>
> Description
> -------
>
> The default executor's `Future<Nothing> kill(const ContainerID&, int)`
> method returns `Nothing()` if the agent responded to the
> `KILL_NESTED_CONTAINER` call, regardless of the response.
>
> This patch updates the method, so that it returns a failure if the
> response is not "200 OK".
>
>
> Diffs
> -----
>
> src/launcher/default_executor.cpp 8720dada8bc6ca66f9e0fec6dc265eda3dcc7407
>
>
> Diff: https://reviews.apache.org/r/65693/diff/1/
>
>
> Testing
> -------
>
> `sudo bin/mesos-tests.sh` on GNU/Linux
>
>
> Thanks,
>
> Gaston Kleiman
>
>