You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "PetrovMikhail (Jira)" <ji...@apache.org> on 2020/04/06 09:32:00 UTC
[jira] [Created] (IGNITE-12865) NPE occurs during CQ registration
with cache node filter specified.
PetrovMikhail created IGNITE-12865:
--------------------------------------
Summary: NPE occurs during CQ registration with cache node filter specified.
Key: IGNITE-12865
URL: https://issues.apache.org/jira/browse/IGNITE-12865
Project: Ignite
Issue Type: Bug
Reporter: PetrovMikhail
NPE occurs during CQ registration if
1. Node that starts cache does not match cache node filter.
2. CQ is started on node that matches cache node filter.
Reproducer:
{code:java}
/** */
@Test
public void test() throws Exception {
IgniteEx filteredNode = startGrid(0);
IgniteEx cacheStoreNode = startGrid(1);
filteredNode.cluster().state(ClusterState.ACTIVE);
filteredNode.createCache(new CacheConfiguration<>(DEFAULT_CACHE_NAME)
.setNodeFilter(node -> !node.id().equals(filteredNode.localNode().id())));
ContinuousQuery<Object, Object> qry = new ContinuousQuery<>();
qry.setLocalListener(evts -> {
//No-op.
});
cacheStoreNode.cache(DEFAULT_CACHE_NAME).query(qry);
}
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)