ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Pereslegin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-9442) Collocated IgniteSet#close is not working on non-affinity node.
Date Fri, 31 Aug 2018 09:03:00 GMT
Pavel Pereslegin created IGNITE-9442:
----------------------------------------

             Summary: Collocated IgniteSet#close is not working on non-affinity node.
                 Key: IGNITE-9442
                 URL: https://issues.apache.org/jira/browse/IGNITE-9442
             Project: Ignite
          Issue Type: Bug
          Components: data structures
    Affects Versions: 2.6
            Reporter: Pavel Pereslegin
            Assignee: Pavel Pereslegin


Simple reproducer:

{code:java}
public void testSetBlockOnCloseFromNonAffinityNode() throws Exception {
        Ignite node = startGridsMultiThreaded(2);

        ClusterNode locNode = node.cluster().localNode();

        IgniteSet<Integer> set = node.set("test",
            new CollectionConfiguration().setCollocated(true).setNodeFilter(n -> !F.eqNodes(locNode,
n)));

        set.close();

        GridTestUtils.assertThrows(log, new Callable<Void>() {
            @Override public Void call() throws Exception {
                set.add(1);

                return null;
            }
        }, IllegalStateException.class, null);
    }
{code}

IgniteSet should be blocked on all nodes before cleanup data.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message