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

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

Commit 6f4bbbd96bcecdb82cf7753ce1dae9fa6baebf9b in geode's branch 
refs/heads/feature/GEODE-7066 from Juan José Ramos
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=6f4bbbd ]

GEODE-7079: Prevent NPE During Queue Conflation (#3911)

* GEODE-7079: Prevent NPE During Queue Conflation

- Added tests.
- Fixed minor warnings.
- Use the cached region name when doing conflation instead of the actual region 
so the processor doesn't need to wait for the actual region to be fully 
initialized.

Co-authored-by: Benjamin Ross <[email protected]>


> NPE Upon Restart When Using Asynchronous Event Distribution & Conflation
> ------------------------------------------------------------------------
>
>                 Key: GEODE-7079
>                 URL: https://issues.apache.org/jira/browse/GEODE-7079
>             Project: Geode
>          Issue Type: Bug
>          Components: wan
>            Reporter: Juan José Ramos Cassella
>            Assignee: Juan José Ramos Cassella
>            Priority: Major
>              Labels: GeodeCommons
>             Fix For: 1.11.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> The following combination of features cannot be safely configured when using 
> pure Geode Java API:
> * Replicated Region.
> * Serial Gateway Sender or Serial Asynchronous Event Queue.
> * Serial Gateway Sender / Serial Asynchronous Event Queue is Persistent.
> * Conflation is Enabled for the Serial Gateway Sender / Serial Asynchronous 
> Event Queue.
> The problem is that, after a restart, events left-over in the persistent 
> queue begin processing before their source {{Region}} is instantiated, 
> causing a {{NullPointerExceptions}} while executing the conflation logic.
> The {{Region}} is only required because internally we need its name, but the 
> name itself is already stored within the actual event so it should be safe to 
> replace {{gsEvent.getRegion().getFullPath()}} by 
> {{gsEvent.getRegionToConflate()}} or {{gsEvent.getRegionPath()}}.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to