You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/09/12 13:13:00 UTC

[jira] [Commented] (GEODE-10420) Handle WAN event when interrupted

    [ https://issues.apache.org/jira/browse/GEODE-10420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17603080#comment-17603080 ] 

ASF subversion and git services commented on GEODE-10420:
---------------------------------------------------------

Commit 6cb76751a78d2dab90d5bf8ab8eda881f89717b0 in geode's branch refs/heads/develop from Alberto Gomez
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=6cb76751a7 ]

GEODE-10420: Finish distribute() work if interrupted (#7854)

It is possible that an event of which a gateway sender
is to be notified is lost if during the process the thread
is interrupted.

The reason is that the distribute() method
in the AbstractGatewaySender when it catches the
InterruptedException at some point, just returns, but
does not put the event in the queue and neither
drops it.

The fix consists of handling the event correctly
(put it in the queue or drop it) if the InterruptedException
is caught but when the method returns set again
the interrupt flag so that the caller is aware.

> Handle WAN event when interrupted
> ---------------------------------
>
>                 Key: GEODE-10420
>                 URL: https://issues.apache.org/jira/browse/GEODE-10420
>             Project: Geode
>          Issue Type: Bug
>            Reporter: Alberto Gomez
>            Assignee: Alberto Gomez
>            Priority: Major
>              Labels: needsTriage, pull-request-available
>
> It is possible that an event of which a gateway sender is to be notified is lost if during the process the thread is interrupted.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)