[
https://issues.apache.org/jira/browse/IGNITE-13381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17317338#comment-17317338
]
Ilya Kasnacheev edited comment on IGNITE-13381 at 4/8/21, 4:55 PM:
-------------------------------------------------------------------
Thank you for this fix [~aealeksandrov]
was (Author: ilyak):
Thank you for this fix [~aalexandrov]
> ClusterGroupEmptyException: Cluster group is empty error after client
> reconnect
> -------------------------------------------------------------------------------
>
> Key: IGNITE-13381
> URL: https://issues.apache.org/jira/browse/IGNITE-13381
> Project: Ignite
> Issue Type: Bug
> Components: networking
> Affects Versions: 2.8.1
> Reporter: Andrey Aleksandrov
> Assignee: Andrey Aleksandrov
> Priority: Major
> Fix For: 2.11
>
> Attachments: SendMessageAfterClientReconnect.java
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Please run the attached test.
> It will produce the following exception:
> Exception in thread "main" class
> org.apache.ignite.cluster.ClusterGroupEmptyException: Cluster group is empty.
> at org.apache.ignite.internal.util.IgniteUtils$6.apply(IgniteUtils.java:927)
> at org.apache.ignite.internal.util.IgniteUtils$6.apply(IgniteUtils.java:925)
> at
> org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:1083)
> at
> org.apache.ignite.internal.IgniteMessagingImpl.send0(IgniteMessagingImpl.java:105)
> at
> org.apache.ignite.internal.IgniteMessagingImpl.send(IgniteMessagingImpl.java:81)
> at npe.IgnitePartitioningTest.main(IgnitePartitioningTest.java:110)
> Caused by: class
> org.apache.ignite.internal.cluster.ClusterGroupEmptyCheckedException: Cluster
> group is empty.
> at
> org.apache.ignite.internal.util.IgniteUtils.emptyTopologyException(IgniteUtils.java:5106)
> at
> org.apache.ignite.internal.IgniteMessagingImpl.send0(IgniteMessagingImpl.java:100)
> ... 2 more
> Fix:
> change
> return new ClusterGroupAdapter(ctx, null,
> Collections.singleton(cfg.getNodeId()));
> on
> return new ClusterGroupAdapter(ctx, null,
> Collections.singleton(ctx.discovery().localNode().id()));
--
This message was sent by Atlassian Jira
(v8.3.4#803005)