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

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

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

GEODE-10417: Fix NullPointerException in WAN replication (#7845)

* GEODE-10417: Fix NullPointerException in WAN replication

When the WAN group-transa$ction-events feature is enabled in
a parallel gateway sender, it is possible to get a NullPointerException
when retrieving events from the queue to complete a transaction if
the event in the queue is null.

If this situation is reached then the gateway sender dispatcher will
not dispatch queue events anymore and therefore the WAN replication
will not progress.

This happens because the predicates that check if elements
in the queue contain a transactionId are not protected
against the event being null.

A null check has been added before the predicates are invoked
so that in case of a null event, the predicate is not invoked
and the event is skipped from the checking.

* GEODE-10417: Change assertEquals to assertThat

> Fix NullPointerException when getting events from the gw sender queue to 
> complete transactions
> ----------------------------------------------------------------------------------------------
>
>                 Key: GEODE-10417
>                 URL: https://issues.apache.org/jira/browse/GEODE-10417
>             Project: Geode
>          Issue Type: Bug
>          Components: wan
>    Affects Versions: 1.13.8, 1.14.4, 1.15.0
>            Reporter: Alberto Gomez
>            Assignee: Alberto Gomez
>            Priority: Major
>              Labels: needsTriage, pull-request-available
>
> When the WAN group-transaction-events feature is enabled in a parallel 
> gateway sender, it is possible to get a NullPointerException when retrieving 
> events from the queue to complete a transaction if the event in the queue is 
> null.
> If this situation is reached then the gateway sender dispatcher will not 
> dispatch queue events anymore and therefore the WAN replication will not 
> progress.



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

Reply via email to