You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Dmitriy Govorukhin (JIRA)" <ji...@apache.org> on 2018/10/21 07:57:00 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=16658124#comment-16658124 ] 

Dmitriy Govorukhin edited comment on IGNITE-3373 at 10/21/18 7:56 AM:
----------------------------------------------------------------------

[~akazlou] Could you please specify the version or hash commit for this issue? I double check your reproducer on current master(3bb03444246f863096063d084393676a84d2bc0e) and ignite-1.9 (0be92732ec4dcc683b1dbeea6c027c4076579847) branch, and it works fine. (Output result was the same)
Is it reproduce if run 2 nodes in one JVM?

Node1
{code}
Started node 4d0cc9f0-b285-4d99-ad5c-559d0178617d
[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 4d0cc9f0-b285-4d99-ad5c-559d0178617d node
[affinity] Size of the numbers distributed set is 0, and items are []
[affinity] Is collocated? true
[affinity] numbers contains 42? false
Waiting 6000 sec...
[10:45:24] Topology snapshot [ver=2, servers=2, clients=0, CPUs=12, heap=14.0GB]
[affinity] Running on 4d0cc9f0-b285-4d99-ad5c-559d0178617d node
[affinity] Size of the numbers distributed set is 1, and items are [42]
[affinity] Is collocated? true
[affinity] numbers contains 42? true
{code}


Node2
{code}
Started node a9c53074-e25e-4bed-97e5-79ba6f78e149
[local] size=1, contains=true  ---> OR
42 ---> OR
[local] Size of the numbers distributed set is 1, and items are [42]
[local] Is collocated? true
[local] numbers contains 42? true
Waiting 6000 sec...
{code}


was (Author: dmitriygovorukhin):
[~akazlou] Could you please specify the version or hash commit for this issue? I double check your reproducer on current master(3bb03444246f863096063d084393676a84d2bc0e) and ignite-1.9 (0be92732ec4dcc683b1dbeea6c027c4076579847) branch, and it works fine. (Output result is the same)
Is it reproduce if run 2 nodes in one JVM?

Node1
{code}
Started node 4d0cc9f0-b285-4d99-ad5c-559d0178617d
[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 4d0cc9f0-b285-4d99-ad5c-559d0178617d node
[affinity] Size of the numbers distributed set is 0, and items are []
[affinity] Is collocated? true
[affinity] numbers contains 42? false
Waiting 6000 sec...
[10:45:24] Topology snapshot [ver=2, servers=2, clients=0, CPUs=12, heap=14.0GB]
[affinity] Running on 4d0cc9f0-b285-4d99-ad5c-559d0178617d node
[affinity] Size of the numbers distributed set is 1, and items are [42]
[affinity] Is collocated? true
[affinity] numbers contains 42? true
{code}


Node2
{code}
Started node a9c53074-e25e-4bed-97e5-79ba6f78e149
[local] size=1, contains=true  ---> OR
42 ---> OR
[local] Size of the numbers distributed set is 1, and items are [42]
[local] Is collocated? true
[local] numbers contains 42? true
Waiting 6000 sec...
{code}

> 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
>            Assignee: Dmitriy Govorukhin
>            Priority: Major
>         Attachments: DistributedSetDemo.java
>
>
> For distributed IgniteSet new node shows incorrect size igniteSet.size() == 0, but igniteSet.contains(42L) == true



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