You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/09/26 19:24:00 UTC

[jira] [Commented] (IGNITE-6346) Distributed set does not work in REPLICATED mode

    [ https://issues.apache.org/jira/browse/IGNITE-6346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16181381#comment-16181381 ] 

ASF GitHub Bot commented on IGNITE-6346:
----------------------------------------

GitHub user vk23 opened a pull request:

    https://github.com/apache/ignite/pull/2757

    IGNITE-6346 Fix: distributed set does not work in REPLICATED mode

    Changes:
    1. Fixed bug
    2. Added tests

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/vk23/ignite ignite-6346

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/ignite/pull/2757.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 #2757
    
----
commit 56d173378de373fe65a26193c5b150b73f0ffeae
Author: vk <ka...@gmail.com>
Date:   2017-09-26T19:15:04Z

    IGNITE-6346 Fix: distributed set does not work in REPLICATED mode
    
    Changes:
    1. Fixed bug
    2. Added tests

----


> Distributed set does not work in REPLICATED mode
> ------------------------------------------------
>
>                 Key: IGNITE-6346
>                 URL: https://issues.apache.org/jira/browse/IGNITE-6346
>             Project: Ignite
>          Issue Type: Bug
>          Components: data structures
>    Affects Versions: 2.1
>            Reporter: Valentin Kulichenko
>            Assignee: vk
>
> When {{IgniteSet}} is created with {{REPLICATED}} cache mode, any attempt to read it fails with exception:
> {noformat}
> Exception in thread "main" class org.apache.ignite.IgniteException: Cluster group is empty.
> 	at org.apache.ignite.internal.util.lang.GridIteratorAdapter.hasNext(GridIteratorAdapter.java:48)
> 	at ReplicatedSet.main(ReplicatedSet.java:36)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
> Caused by: class org.apache.ignite.internal.cluster.ClusterGroupEmptyCheckedException: Cluster group is empty.
> 	at org.apache.ignite.internal.processors.cache.query.GridCacheQueryAdapter.execute0(GridCacheQueryAdapter.java:481)
> 	at org.apache.ignite.internal.processors.cache.query.GridCacheQueryAdapter.execute(GridCacheQueryAdapter.java:442)
> 	at org.apache.ignite.internal.processors.datastructures.GridCacheSetImpl.iterator0(GridCacheSetImpl.java:420)
> 	at org.apache.ignite.internal.processors.datastructures.GridCacheSetImpl.iterator(GridCacheSetImpl.java:375)
> 	at org.apache.ignite.internal.processors.datastructures.GridCacheSetProxy.iterator(GridCacheSetProxy.java:342)
> 	... 6 more
> {noformat}
> To reproduce run the following code:
> {code}
> Ignition.start(new IgniteConfiguration().setIgniteInstanceName("server-1"));
> Ignition.start(new IgniteConfiguration().setIgniteInstanceName("server-2"));
> Ignition.setClientMode(true);
> Ignite ignite = Ignition.start();
> IgniteSet<String> set = ignite.set("my-set", new CollectionConfiguration().setCacheMode(CacheMode.REPLICATED));
> for (String s : set) {
>     System.out.println(s);
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)