ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Goncharuk (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-3227) IgniteCache: add method to calculate size per partition
Date Mon, 04 Jul 2016 03:27:10 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-3227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15360787#comment-15360787

Alexey Goncharuk commented on IGNITE-3227:

 - No need to have two separate tasks for partition size. It is enough to have Long size task
and cast long to int (with a proper range check and exceprion, if needed) in CacheProxy
 - Because of above, no need for int-size methods on IgniteInternalCache interface
 - No need to send the task to all nodes in the cluster. Method should map partition to nodes
and send the task only to responsible nodes.
 - We should reserve partition and only count size of partitions in OWNING state.

> IgniteCache: add method to calculate size per partition
> -------------------------------------------------------
>                 Key: IGNITE-3227
>                 URL: https://issues.apache.org/jira/browse/IGNITE-3227
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Denis Magda
>            Assignee: Saikat Maitra
>              Labels: community, important
> It makes sense to add size calculation per partition. Actually the following methods
should be added to the {{IgniteCache}} API.
> {code}
> public int size(int partition, CachePeekMode... peekModes) throws CacheException;
> public int localSize(int partition, CachePeekMode... peekModes);
> {code}

This message was sent by Atlassian JIRA

View raw message