[
https://issues.apache.org/jira/browse/IGNITE-9442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16602965#comment-16602965
]
ASF GitHub Bot commented on IGNITE-9442:
----------------------------------------
GitHub user xtern opened a pull request:
https://github.com/apache/ignite/pull/4680
IGNITE-9442
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/xtern/ignite IGNITE-9442
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/ignite/pull/4680.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #4680
----
commit fb7f21a41917b0ce1f58343376a5884aa3940bb2
Author: pereslegin-pa <xxtern@...>
Date: 2018-09-04T12:06:06Z
IGNITE-9442 Block set on all nodes.
----
> 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
> Priority: Major
>
> 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
> -> !locNode.equals(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)