You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Benjamin Mahler <bm...@apache.org> on 2020/04/21 17:43:34 UTC

Review Request 72404: Fixed discard race in libwinio io operations.

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

Review request for mesos, Andrei Sekretenko and Greg Mann.


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


Repository: mesos


Description
-------

When getting a discard request for an io operation on windows,
a cancellation is requested and when the io operation completes
a check is performed to see if the future had a discard requested.
However, it's possible that the operation completed successfully
or had a failure and we should not be dropping that information
from the caller.

To correctly check whether the cancellation succeded, we need
to check for ERROR_OPERATION_ABORTED.


Diffs
-----

  3rdparty/libprocess/src/windows/libwinio.cpp 85ee7ea3e148ae26f2374918ed7c853a50b3b6c1 


Diff: https://reviews.apache.org/r/72404/diff/1/


Testing
-------

make check and started running it through internal CI


Thanks,

Benjamin Mahler


Re: Review Request 72404: Fixed discard race in libwinio io operations.

Posted by Benjamin Mahler <bm...@apache.org>.

> On April 22, 2020, 11:36 p.m., Greg Mann wrote:
> > 3rdparty/libprocess/src/windows/libwinio.cpp
> > Line 144 (original), 144 (patched)
> > <https://reviews.apache.org/r/72404/diff/1/?file=2224516#file2224516line144>
> >
> >     Do you think it's worth leaving a comment here that `ERROR_OPERATION_ABORTED` is the error code we expect to see after our `onDiscard` handler has executed?

Sounds good, I'll clarify this.


- Benjamin


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


On April 21, 2020, 5:43 p.m., Benjamin Mahler wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/72404/
> -----------------------------------------------------------
> 
> (Updated April 21, 2020, 5:43 p.m.)
> 
> 
> Review request for mesos, Andrei Sekretenko and Greg Mann.
> 
> 
> Bugs: MESOS-10123
>     https://issues.apache.org/jira/browse/MESOS-10123
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> When getting a discard request for an io operation on windows,
> a cancellation is requested and when the io operation completes
> a check is performed to see if the future had a discard requested.
> However, it's possible that the operation completed successfully
> or had a failure and we should not be dropping that information
> from the caller.
> 
> To correctly check whether the cancellation succeded, we need
> to check for ERROR_OPERATION_ABORTED.
> 
> 
> Diffs
> -----
> 
>   3rdparty/libprocess/src/windows/libwinio.cpp 85ee7ea3e148ae26f2374918ed7c853a50b3b6c1 
> 
> 
> Diff: https://reviews.apache.org/r/72404/diff/1/
> 
> 
> Testing
> -------
> 
> make check and started running it through internal CI
> 
> 
> Thanks,
> 
> Benjamin Mahler
> 
>


Re: Review Request 72404: Fixed discard race in libwinio io operations.

Posted by Greg Mann <gr...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/72404/#review220435
-----------------------------------------------------------




3rdparty/libprocess/src/windows/libwinio.cpp
Line 144 (original), 144 (patched)
<https://reviews.apache.org/r/72404/#comment308820>

    Do you think it's worth leaving a comment here that `ERROR_OPERATION_ABORTED` is the error code we expect to see after our `onDiscard` handler has executed?


- Greg Mann


On April 21, 2020, 5:43 p.m., Benjamin Mahler wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/72404/
> -----------------------------------------------------------
> 
> (Updated April 21, 2020, 5:43 p.m.)
> 
> 
> Review request for mesos, Andrei Sekretenko and Greg Mann.
> 
> 
> Bugs: MESOS-10123
>     https://issues.apache.org/jira/browse/MESOS-10123
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> When getting a discard request for an io operation on windows,
> a cancellation is requested and when the io operation completes
> a check is performed to see if the future had a discard requested.
> However, it's possible that the operation completed successfully
> or had a failure and we should not be dropping that information
> from the caller.
> 
> To correctly check whether the cancellation succeded, we need
> to check for ERROR_OPERATION_ABORTED.
> 
> 
> Diffs
> -----
> 
>   3rdparty/libprocess/src/windows/libwinio.cpp 85ee7ea3e148ae26f2374918ed7c853a50b3b6c1 
> 
> 
> Diff: https://reviews.apache.org/r/72404/diff/1/
> 
> 
> Testing
> -------
> 
> make check and started running it through internal CI
> 
> 
> Thanks,
> 
> Benjamin Mahler
> 
>


Re: Review Request 72404: Fixed discard race in libwinio io operations.

Posted by Greg Mann <gr...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/72404/#review220434
-----------------------------------------------------------


Ship it!




Ship It!

- Greg Mann


On April 21, 2020, 5:43 p.m., Benjamin Mahler wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/72404/
> -----------------------------------------------------------
> 
> (Updated April 21, 2020, 5:43 p.m.)
> 
> 
> Review request for mesos, Andrei Sekretenko and Greg Mann.
> 
> 
> Bugs: MESOS-10123
>     https://issues.apache.org/jira/browse/MESOS-10123
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> When getting a discard request for an io operation on windows,
> a cancellation is requested and when the io operation completes
> a check is performed to see if the future had a discard requested.
> However, it's possible that the operation completed successfully
> or had a failure and we should not be dropping that information
> from the caller.
> 
> To correctly check whether the cancellation succeded, we need
> to check for ERROR_OPERATION_ABORTED.
> 
> 
> Diffs
> -----
> 
>   3rdparty/libprocess/src/windows/libwinio.cpp 85ee7ea3e148ae26f2374918ed7c853a50b3b6c1 
> 
> 
> Diff: https://reviews.apache.org/r/72404/diff/1/
> 
> 
> Testing
> -------
> 
> make check and started running it through internal CI
> 
> 
> Thanks,
> 
> Benjamin Mahler
> 
>


Re: Review Request 72404: Fixed discard race in libwinio io operations.

Posted by Benjamin Mahler <bm...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/72404/
-----------------------------------------------------------

(Updated April 24, 2020, 6:03 p.m.)


Review request for mesos, Andrei Sekretenko and Greg Mann.


Changes
-------

* Added a comment explaining the error code.


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


Repository: mesos


Description
-------

When getting a discard request for an io operation on windows,
a cancellation is requested and when the io operation completes
a check is performed to see if the future had a discard requested.
However, it's possible that the operation completed successfully
or had a failure and we should not be dropping that information
from the caller.

To correctly check whether the cancellation succeded, we need
to check for ERROR_OPERATION_ABORTED.


Diffs (updated)
-----

  3rdparty/libprocess/src/windows/libwinio.cpp 85ee7ea3e148ae26f2374918ed7c853a50b3b6c1 


Diff: https://reviews.apache.org/r/72404/diff/2/

Changes: https://reviews.apache.org/r/72404/diff/1-2/


Testing
-------

make check and started running it through internal CI


Thanks,

Benjamin Mahler