[
https://issues.apache.org/jira/browse/GEODE-2685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Darrel Schneider updated GEODE-2685:
------------------------------------
Description:
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.
was:
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.
> 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
> Time Spent: 6h 40m
> 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)