You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Till Toenshoff via Review Board <no...@reviews.apache.org> on 2018/11/16 01:53:52 UTC
Review Request 69368: Added test reproducing crash on authorization
failure.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/69368/
-----------------------------------------------------------
Review request for mesos, Alexander Rukletsov, Alexander Rojas, and Benjamin Bannier.
Bugs: MESOS-9317
https://issues.apache.org/jira/browse/MESOS-9317
Repository: mesos
Description
-------
This test reproduces the scenario as described in MESOS-9317. The test
attempts to create a persistent volume by a web request to the
authorized V1 operator endpoint. The test assures that the underlying
authorization request fails as it can in production due to failures in
the authorization backend.
Without fixing MESOS-9317, this test crashes the master process as the
code-path involved will attempt to access the contents of the awaited
future even though the future had failed.
Diffs
-----
src/tests/master_tests.cpp ac6bf379c5906cf9612284911c121c9457f648a0
Diff: https://reviews.apache.org/r/69368/diff/1/
Testing
-------
`make check` before applying the fix for MESOS-9317 and after doing so.
Thanks,
Till Toenshoff
Re: Review Request 69368: Added test reproducing crash on
authorization failure.
Posted by Alexander Rojas <al...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/69368/#review210597
-----------------------------------------------------------
Ship it!
Ship It!
src/tests/master_tests.cpp
Lines 10095 (patched)
<https://reviews.apache.org/r/69368/#comment295309>
Feel free to ignore, but I prefer to use `Authorization` instead of `Authz` in the codebase, even if informally we call it authz.
- Alexander Rojas
On Nov. 16, 2018, 2:53 a.m., Till Toenshoff wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/69368/
> -----------------------------------------------------------
>
> (Updated Nov. 16, 2018, 2:53 a.m.)
>
>
> Review request for mesos, Alexander Rukletsov, Alexander Rojas, and Benjamin Bannier.
>
>
> Bugs: MESOS-9317
> https://issues.apache.org/jira/browse/MESOS-9317
>
>
> Repository: mesos
>
>
> Description
> -------
>
> This test reproduces the scenario as described in MESOS-9317. The test
> attempts to create a persistent volume by a web request to the
> authorized V1 operator endpoint. The test assures that the underlying
> authorization request fails as it can in production due to failures in
> the authorization backend.
> Without fixing MESOS-9317, this test crashes the master process as the
> code-path involved will attempt to access the contents of the awaited
> future even though the future had failed.
>
>
> Diffs
> -----
>
> src/tests/master_tests.cpp ac6bf379c5906cf9612284911c121c9457f648a0
>
>
> Diff: https://reviews.apache.org/r/69368/diff/1/
>
>
> Testing
> -------
>
> `make check` before applying the fix for MESOS-9317 and after doing so.
>
>
> Thanks,
>
> Till Toenshoff
>
>
Re: Review Request 69368: Added test reproducing crash on
authorization failure.
Posted by Till Toenshoff via Review Board <no...@reviews.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/69368/#review210649
-----------------------------------------------------------
src/tests/master_tests.cpp
Line 10101 (original), 10101 (patched)
<https://reviews.apache.org/r/69368/#comment295376>
Lacks period.
- Till Toenshoff
On Nov. 18, 2018, 10:48 p.m., Till Toenshoff wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/69368/
> -----------------------------------------------------------
>
> (Updated Nov. 18, 2018, 10:48 p.m.)
>
>
> Review request for mesos, Alexander Rukletsov, Alexander Rojas, and Benjamin Bannier.
>
>
> Bugs: MESOS-9317
> https://issues.apache.org/jira/browse/MESOS-9317
>
>
> Repository: mesos
>
>
> Description
> -------
>
> This test reproduces the scenario as described in MESOS-9317. The test
> attempts to create a persistent volume by a web request to the
> authorized V1 operator endpoint. The test assures that the underlying
> authorization request fails as it can in production due to failures in
> the authorization backend.
>
> Without fixing MESOS-9317, this test crashes the master process as the
> code-path involved will attempt to access the contents of the awaited
> future even though the future had failed.
>
>
> Diffs
> -----
>
> src/tests/master_tests.cpp ac6bf379c5906cf9612284911c121c9457f648a0
>
>
> Diff: https://reviews.apache.org/r/69368/diff/3/
>
>
> Testing
> -------
>
> `make check` before applying the fix for MESOS-9317 and after doing so.
>
>
> Thanks,
>
> Till Toenshoff
>
>
Re: Review Request 69368: Added test reproducing crash on
authorization failure.
Posted by Till Toenshoff via Review Board <no...@reviews.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/69368/
-----------------------------------------------------------
(Updated Nov. 18, 2018, 10:48 p.m.)
Review request for mesos, Alexander Rukletsov, Alexander Rojas, and Benjamin Bannier.
Changes
-------
Fixed nits in comments.
Bugs: MESOS-9317
https://issues.apache.org/jira/browse/MESOS-9317
Repository: mesos
Description
-------
This test reproduces the scenario as described in MESOS-9317. The test
attempts to create a persistent volume by a web request to the
authorized V1 operator endpoint. The test assures that the underlying
authorization request fails as it can in production due to failures in
the authorization backend.
Without fixing MESOS-9317, this test crashes the master process as the
code-path involved will attempt to access the contents of the awaited
future even though the future had failed.
Diffs (updated)
-----
src/tests/master_tests.cpp ac6bf379c5906cf9612284911c121c9457f648a0
Diff: https://reviews.apache.org/r/69368/diff/3/
Changes: https://reviews.apache.org/r/69368/diff/2-3/
Testing
-------
`make check` before applying the fix for MESOS-9317 and after doing so.
Thanks,
Till Toenshoff
Re: Review Request 69368: Added test reproducing crash on
authorization failure.
Posted by Alexander Rukletsov <ru...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/69368/#review210623
-----------------------------------------------------------
Ship it!
src/tests/master_tests.cpp
Lines 10101 (patched)
<https://reviews.apache.org/r/69368/#comment295356>
We usually back tick variable, type names.
src/tests/master_tests.cpp
Lines 10109 (patched)
<https://reviews.apache.org/r/69368/#comment295357>
why is "Static" capitalized?
- Alexander Rukletsov
On Nov. 18, 2018, 1:23 a.m., Till Toenshoff wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/69368/
> -----------------------------------------------------------
>
> (Updated Nov. 18, 2018, 1:23 a.m.)
>
>
> Review request for mesos, Alexander Rukletsov, Alexander Rojas, and Benjamin Bannier.
>
>
> Bugs: MESOS-9317
> https://issues.apache.org/jira/browse/MESOS-9317
>
>
> Repository: mesos
>
>
> Description
> -------
>
> This test reproduces the scenario as described in MESOS-9317. The test
> attempts to create a persistent volume by a web request to the
> authorized V1 operator endpoint. The test assures that the underlying
> authorization request fails as it can in production due to failures in
> the authorization backend.
>
> Without fixing MESOS-9317, this test crashes the master process as the
> code-path involved will attempt to access the contents of the awaited
> future even though the future had failed.
>
>
> Diffs
> -----
>
> src/tests/master_tests.cpp ac6bf379c5906cf9612284911c121c9457f648a0
>
>
> Diff: https://reviews.apache.org/r/69368/diff/2/
>
>
> Testing
> -------
>
> `make check` before applying the fix for MESOS-9317 and after doing so.
>
>
> Thanks,
>
> Till Toenshoff
>
>
Re: Review Request 69368: Added test reproducing crash on
authorization failure.
Posted by Till Toenshoff via Review Board <no...@reviews.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/69368/
-----------------------------------------------------------
(Updated Nov. 18, 2018, 1:23 a.m.)
Review request for mesos, Alexander Rukletsov, Alexander Rojas, and Benjamin Bannier.
Changes
-------
Removed unused future capture.
Bugs: MESOS-9317
https://issues.apache.org/jira/browse/MESOS-9317
Repository: mesos
Description
-------
This test reproduces the scenario as described in MESOS-9317. The test
attempts to create a persistent volume by a web request to the
authorized V1 operator endpoint. The test assures that the underlying
authorization request fails as it can in production due to failures in
the authorization backend.
Without fixing MESOS-9317, this test crashes the master process as the
code-path involved will attempt to access the contents of the awaited
future even though the future had failed.
Diffs (updated)
-----
src/tests/master_tests.cpp ac6bf379c5906cf9612284911c121c9457f648a0
Diff: https://reviews.apache.org/r/69368/diff/2/
Changes: https://reviews.apache.org/r/69368/diff/1-2/
Testing
-------
`make check` before applying the fix for MESOS-9317 and after doing so.
Thanks,
Till Toenshoff