You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Alexey Kuznetsov (JIRA)" <ji...@apache.org> on 2015/11/02 10:32:27 UTC
[jira] [Created] (IGNITE-1833) VisorCache task collects wrong
backup partitions information
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)