You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geode.apache.org by xiaojian zhou <zh...@gmail.com> on 2016/09/23 00:00:12 UTC

Review Request 52179: There's race condition that the AckReader thread got the read lock and waitng for ack, but the stopSender() kicks in

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

Review request for geode and Dan Smith.


Bugs: geode-1894
    https://issues.apache.org/jira/browse/geode-1894


Repository: geode


Description
-------

To resolve the race condition, we should double check if if Sender's processor is stopped. If yes, then don't wait for ack


Diffs
-----

  geode-wan/src/main/java/org/apache/geode/internal/cache/wan/GatewaySenderEventRemoteDispatcher.java 6beb0ee046d7e0cae5985b6430a390dd68f1351a 

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


Testing
-------


Thanks,

xiaojian zhou


Re: Review Request 52179: There's race condition that the AckReader thread got the read lock and waitng for ack, but the stopSender() kicks in

Posted by Dan Smith <ds...@pivotal.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/52179/#review150105
-----------------------------------------------------------


Ship it!




Ship It!

- Dan Smith


On Sept. 23, 2016, midnight, xiaojian zhou wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/52179/
> -----------------------------------------------------------
> 
> (Updated Sept. 23, 2016, midnight)
> 
> 
> Review request for geode and Dan Smith.
> 
> 
> Bugs: geode-1894
>     https://issues.apache.org/jira/browse/geode-1894
> 
> 
> Repository: geode
> 
> 
> Description
> -------
> 
> To resolve the race condition, we should double check if if Sender's processor is stopped. If yes, then don't wait for ack
> 
> 
> Diffs
> -----
> 
>   geode-wan/src/main/java/org/apache/geode/internal/cache/wan/GatewaySenderEventRemoteDispatcher.java 6beb0ee046d7e0cae5985b6430a390dd68f1351a 
> 
> Diff: https://reviews.apache.org/r/52179/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> xiaojian zhou
> 
>