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

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

Commit f00fa835e20d022b74abf358fca763c955e0d5fa in geode's branch 
refs/heads/feature/GEODE-6770 from albertogpz
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=f00fa83 ]

GEODE-2685: support getStatistics on PartitionedRegion (#3576)

getStatistics for a partitioned region that is not a proxy will return a 
CacheStatistics whose methods always compute their results from local bucket 
state.
For a proxy partitioned region The CacheStatistics methods will always return 0.

> request that ParitionedRegion getStatistics be a supported operation
> --------------------------------------------------------------------
>
>                 Key: GEODE-2685
>                 URL: https://issues.apache.org/jira/browse/GEODE-2685
>             Project: Geode
>          Issue Type: Improvement
>          Components: regions
>            Reporter: Darrel Schneider
>            Assignee: Alberto Gomez
>            Priority: Major
>              Labels: starter, storage_2
>             Fix For: 1.10.0
>
>          Time Spent: 7h 50m
>  Remaining Estimate: 0h
>
> The current implementation of PartitionedRegion getStatistics always throws 
> UnsupportedOperationException.
> It would be nice for this operation to be supported.
> I think the statistics it returns could be a snapshot of the state of the 
> local buckets in the PR at the time getStatistics is called. This could be 
> implemented by iterating over the local internal BucketRegions and asking 
> them for their statistics. For a PR accessor (no local buckets) the only stat 
> that is needed is misses since you have no local buckets and every operation 
> is a miss.
> It would be even better for getStatistics to not be a snapshot since that is 
> the current, non-partitioned, behavior. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to