geode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darrel Schneider (JIRA)" <>
Subject [jira] [Commented] (GEODE-2452) invalidateRegion on a CACHING_PROXY region throws NPE
Date Sat, 11 Feb 2017 01:24:41 GMT


Darrel Schneider commented on GEODE-2452:

I could not get the line numbers to match up to my code but I think the NPE is coming from
this line:

Code inspection shows that when the EntryEventImpl is created that the eventId is never set
so the above line would result in an NPE.
This makes me think that client "invalidateRegion" has been broken for a long time.

I also wonder if its attempted implementation is correct. It attempts to only invalidate server
region entries that exist on the client. I think it would be more correct for the client to
just send a single message to the server telling it to invalidate the entire region. That
is how the p2p invalidateRegion is implemented.

> invalidateRegion on a CACHING_PROXY region throws NPE
> -----------------------------------------------------
>                 Key: GEODE-2452
>                 URL:
>             Project: Geode
>          Issue Type: Bug
>          Components: regions
>            Reporter: Swapnil Bawaskar
> Calling invalidateRegion on a CACHING_PROXY threw the following Exception:
> {noformat}
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.geode.cache.client.internal.InvalidateOp$InvalidateOpImpl.<init>(
> 	at org.apache.geode.cache.client.internal.InvalidateOp.execute(
> 	at org.apache.geode.cache.client.internal.ServerRegionProxy.invalidate(
> 	at org.apache.geode.internal.cache.LocalRegion.serverInvalidate(
> 	at org.apache.geode.internal.cache.AbstractRegionMap.invalidate(
> 	at org.apache.geode.internal.cache.LocalRegionDataView.invalidateExistingEntry(
> 	at org.apache.geode.internal.cache.LocalRegion.basicInvalidate(
> 	at org.apache.geode.internal.cache.LocalRegion.basicInvalidate(
> 	at org.apache.geode.internal.cache.LocalRegion.invalidateAllEntries(
> 	at org.apache.geode.internal.cache.LocalRegion.basicInvalidateRegion(
> 	at org.apache.geode.internal.cache.LocalRegion.invalidateRegion(
> 	at org.apache.geode.internal.cache.AbstractRegion.invalidateRegion(
> {noformat}

This message was sent by Atlassian JIRA

View raw message