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

Anilkumar Gingade commented on GEODE-2452:
------------------------------------------

The API naming is not clear with respect to different topology:
- peer to peer
- client server (with caching proxy)

The java doc says "Invalidation cascades to all entries and subregions."; its 
not clear, if it is invalidating only the client side entries on both client 
and server or all the entries on client (subset of server side data) and server 
(all the server side entries).

Based on team discussion, the inclination is to keep the api consistent across 
the client/server and peer-peer topology (invalidate all entries) and add a new 
api that will allow invalidating set of keys (invalidate(region.keySet()); 






> invalidateRegion on a CACHING_PROXY region throws NPE
> -----------------------------------------------------
>
>                 Key: GEODE-2452
>                 URL: https://issues.apache.org/jira/browse/GEODE-2452
>             Project: Geode
>          Issue Type: Sub-task
>          Components: regions
>            Reporter: Swapnil Bawaskar
>              Labels: storage_2
>
> 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>(InvalidateOp.java:67)
>       at 
> org.apache.geode.cache.client.internal.InvalidateOp.execute(InvalidateOp.java:47)
>       at 
> org.apache.geode.cache.client.internal.ServerRegionProxy.invalidate(ServerRegionProxy.java:221)
>       at 
> org.apache.geode.internal.cache.LocalRegion.serverInvalidate(LocalRegion.java:3149)
>       at 
> org.apache.geode.internal.cache.AbstractRegionMap.invalidate(AbstractRegionMap.java:2134)
>       at 
> org.apache.geode.internal.cache.LocalRegionDataView.invalidateExistingEntry(LocalRegionDataView.java:67)
>       at 
> org.apache.geode.internal.cache.LocalRegion.basicInvalidate(LocalRegion.java:5223)
>       at 
> org.apache.geode.internal.cache.LocalRegion.basicInvalidate(LocalRegion.java:5187)
>       at 
> org.apache.geode.internal.cache.LocalRegion.invalidateAllEntries(LocalRegion.java:8045)
>       at 
> org.apache.geode.internal.cache.LocalRegion.basicInvalidateRegion(LocalRegion.java:7398)
>       at 
> org.apache.geode.internal.cache.LocalRegion.invalidateRegion(LocalRegion.java:1647)
>       at 
> org.apache.geode.internal.cache.AbstractRegion.invalidateRegion(AbstractRegion.java:342)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to