[ 
https://issues.apache.org/jira/browse/GEODE-9944?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric Shu updated GEODE-9944:
----------------------------
    Labels: GeodeOperationAPI needsTriage  (was: needsTriage)

> NPE could occur if HARegion is being created again but not fully initialized 
> -----------------------------------------------------------------------------
>
>                 Key: GEODE-9944
>                 URL: https://issues.apache.org/jira/browse/GEODE-9944
>             Project: Geode
>          Issue Type: Bug
>          Components: client queues
>    Affects Versions: 1.15.0
>            Reporter: Eric Shu
>            Assignee: Eric Shu
>            Priority: Major
>              Labels: GeodeOperationAPI, needsTriage
>
> The stack trace for the NPE is:
> {noformat}
> fatal 2022/01/08 12:45:33.175 PST bridgegemfire7_host1_25026 <Pooled Message 
> Processor 7> tid=0x148] Uncaught exception processing 
> QueueSynchronizationProcessor$QueueSynchronizationMessage@340d586b 
> processorId=4029 
> sender=rs-FullRegression15142100a3i3large-hydra-client-18(bridgegemfire6_host1_25009:25009)<ec><v5>:41006
> java.lang.NullPointerException
>         at 
> org.apache.geode.internal.cache.ha.QueueSynchronizationProcessor$QueueSynchronizationMessage.getDispatchedEvents(QueueSynchronizationProcessor.java:160)
>         at 
> org.apache.geode.internal.cache.ha.QueueSynchronizationProcessor$QueueSynchronizationMessage.process(QueueSynchronizationProcessor.java:127)
>         at 
> org.apache.geode.distributed.internal.DistributionMessage.scheduleAction(DistributionMessage.java:376)
>         at 
> org.apache.geode.distributed.internal.DistributionMessage$1.run(DistributionMessage.java:441)
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>         at 
> org.apache.geode.distributed.internal.ClusterOperationExecutors.runUntilShutdown(ClusterOperationExecutors.java:444)
>         at 
> org.apache.geode.distributed.internal.ClusterOperationExecutors.doProcessingThread(ClusterOperationExecutors.java:391)
>         at 
> org.apache.geode.logging.internal.executors.LoggingThreadFactory.lambda$newThread$0(LoggingThreadFactory.java:120)
>         at java.lang.Thread.run(Thread.java:748)
> {noformat}
> This could occur when a client is not able to re-auth in time, and the server 
> removes the HARegionQueue to the client. When the client is able to re-auth 
> later, the new HARegionQueue is created again. There is a race that when the 
> server process the above message, the HARegionQueue is not fully initialized 
> and cause this NPE.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to