[jira] [Created] (IGNITE-1833) VisorCache task collects wrong backup partitions information

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (IGNITE-1833) VisorCache task collects wrong backup partitions information

Anton Vinogradov (Jira)
Alexey Kuznetsov created IGNITE-1833:
----------------------------------------

             Summary: 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: Alexey Kuznetsov
             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)