You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Semen Boikov (JIRA)" <ji...@apache.org> on 2016/05/24 08:05:12 UTC
[jira] [Assigned] (IGNITE-2911) ClusterGroup.forDaemons does not
work
[ https://issues.apache.org/jira/browse/IGNITE-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Semen Boikov reassigned IGNITE-2911:
------------------------------------
Assignee: Alexey Kuznetsov (was: Semen Boikov)
Reviewed, fix is not correct, result of ClusterGroup.nodes() should take into account topology changes, this does not work for this 'forDaemons' implementation, here is test reproducing issues:
{noformat}
public void testForDaemons() throws Exception {
assertEquals(4, ignite.cluster().nodes().size());
ClusterGroup daemons = ignite.cluster().forDaemons();
ClusterGroup srvs = ignite.cluster().forServers();
assertEquals(0, daemons.nodes().size());
assertEquals(2, srvs.nodes().size());
Ignition.setDaemon(true);
try (Ignite g = startGrid(NODES_CNT)) {
Ignition.setDaemon(false);
try (Ignite g1 = startGrid(NODES_CNT + 1)) {
assertEquals(1, ignite.cluster().forDaemons().nodes().size());
assertEquals(3, srvs.nodes().size());
assertEquals(1, daemons.nodes().size());
}
}
}
{noformat}
> ClusterGroup.forDaemons does not work
> -------------------------------------
>
> Key: IGNITE-2911
> URL: https://issues.apache.org/jira/browse/IGNITE-2911
> Project: Ignite
> Issue Type: Bug
> Components: compute
> Affects Versions: 1.1.4
> Reporter: Pavel Tupitsyn
> Assignee: Alexey Kuznetsov
> Priority: Critical
> Fix For: 1.7
>
>
> * Start a node in daemon mode
> * ClusterGroup.forDaemons returns an empty projection
> The only existing test for this method only checks for empty result.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)