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

Andrew Mashenkov commented on IGNITE-4881:
------------------------------------------

Why size() on replicated cache relies on primary partitions?
All data is available on every cache data node. 

Can we change default behavior for REPLICATED cache and get cache size from 
local node (if possible) or random grid data node (otherwise) on latest ready 
topology?
Is it possible to fix this for PARTITIONED cache as seems it has same issue? I 
mean to get size of primary partitions on latest ready topology.

[~sboikov], [~agoncharuk] do you have any thoughts if it possible to be fixed 
somehow?

> REPLICATED cache size is wrong after node left topology.
> --------------------------------------------------------
>
>                 Key: IGNITE-4881
>                 URL: https://issues.apache.org/jira/browse/IGNITE-4881
>             Project: Ignite
>          Issue Type: Bug
>          Components: cache
>    Affects Versions: 1.7
>            Reporter: Andrew Mashenkov
>             Fix For: 2.4
>
>         Attachments: EvictionPolicyTest.java
>
>
> After one of nodes leave topology, cache.size() returns wrong value until 
> first write attempt.
> PFA repro. Successfully reproduced on 1.7-1.9 and master.



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

Reply via email to