You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Andrey Velichko (JIRA)" <ji...@apache.org> on 2016/06/27 14:09:52 UTC
[jira] [Comment Edited] (IGNITE-3373) Distributed IgniteSet shows
size() == 0 for any new node
[ https://issues.apache.org/jira/browse/IGNITE-3373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15351060#comment-15351060 ]
Andrey Velichko edited comment on IGNITE-3373 at 6/27/16 2:09 PM:
------------------------------------------------------------------
1 Run first instance
[17:06:52] Topology snapshot [ver=1, servers=1, clients=0, CPUs=8, heap=3.5GB]
Started node fff3de00-bf3b-4555-a22a-a7310c0f3a79
[local] creating collection [numbers]
[local] size=0, contains=false
[local] Size of the numbers distributed set is 0, and items are []
[local] Is collocated? true
[local] numbers contains 42? false
[affinity] Running on fff3de00-bf3b-4555-a22a-a7310c0f3a79 node
[affinity] Size of the numbers distributed set is 0, and items are []
[affinity] Is collocated? true
[affinity] numbers contains 42? false
2 Run second instance, size at line 3 incorrect
[17:07:38] Topology snapshot [ver=2, servers=2, clients=0, CPUs=8, heap=7.1GB]
Started node 287b112b-c06b-4e46-bf5d-04f4d5616734
[local] size=0, contains=true ---> ERROR
[local] Size of the numbers distributed set is 0, and items are []
[local] Is collocated? true
[local] numbers contains 42? true
See details http://apache-ignite-users.70518.x6.nabble.com/Strange-collocated-distributed-set-behavior-td5643.html
was (Author: andreyvel):
Need run2 instances. Second instance shows size==0.
> Distributed IgniteSet shows size() == 0 for any new node
> --------------------------------------------------------
>
> Key: IGNITE-3373
> URL: https://issues.apache.org/jira/browse/IGNITE-3373
> Project: Ignite
> Issue Type: Bug
> Reporter: Andrey Velichko
> Attachments: DistributedSetDemo.java
>
>
> For distributed IgniteSet new node shows incorrdet set size
> igniteSet.size() == 0
> CollectionConfiguration collectionConfiguration = new CollectionConfiguration();
> collectionConfiguration.setCollocated(true);
> IgniteSet<Long> numbers = ignite.set("numbers", null);
> if (numbers == null) {
> System.out.println("[local] creating collection [numbers]");
> numbers = ignite.set("numbers", collectionConfiguration);
> }
> boolean cont = numbers.contains(42L); // true - OK
> int num = numbers.size(); // 0 Error ???
> System.out.println("size=" + num + ", contains=" + cont);
> numbers.forEach(val -> {
> System.out.println(val); // Iterator is not iterate :(
> });
> numbers.add(42L);
> Thread.sleep(1000 * 6000);
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)