ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Kuznetsov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-1833) VisorCache task collects wrong backup partitions information
Date Mon, 02 Nov 2015 09:32:27 GMT
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)

Mime
View raw message