[ 
https://issues.apache.org/jira/browse/IGNITE-1833?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pavel Konstantinov closed IGNITE-1833.
--------------------------------------

Successfully tested in master.

> VisorCache task collects wrong backup partitions information
> ------------------------------------------------------------
>
>                 Key: IGNITE-1833
>                 URL: https://issues.apache.org/jira/browse/IGNITE-1833
>             Project: Ignite
>          Issue Type: Bug
>          Components: cache
>    Affects Versions: ignite-1.4
>            Reporter: Alexey Kuznetsov
>            Assignee: Pavel Konstantinov
>             Fix For: 1.5
>
>
> Current logic of VisorCache task is like this (pseudo code):
> {code}
> parts = cache.getPartitions();
> for (part in parts) {
>  if (part.isPrimary)
>    prtimCnt++;
>  else
>   backupCnt++;
> }
> {code}
> but we should add more checks to detect if  partition is really backup.
> {code}
> for (part in parts) {
>  if (part.isPrimary)
>    prtimCnt++;
>  else if (part.state == OWNING && part.isBackup)
>   backupCnt++;
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to