Alexey Scherbakov created IGNITE-15965:
------------------------------------------

             Summary: Cluster has not been started invariant is broken
                 Key: IGNITE-15965
                 URL: https://issues.apache.org/jira/browse/IGNITE-15965
             Project: Ignite
          Issue Type: Bug
            Reporter: Alexey Scherbakov
             Fix For: 3.0.0-alpha4


If [1] is called from a message handler just after the cluster start, it will 
trigger the assertion:
{code:java}
assert localMember != null : "Cluster has not been started";{code}
This is possible because local member is assigned after a 
_cluster.startAwait()_, but messages start to process a bit earlier.

Reproducible, for example, by [2]

Suggested fix - always delegate localMember() call to ClusterImpl.

[1] org.apache.ignite.network.scalecube.ScaleCubeTopologyService#localMember

[2] org.apache.ignite.raft.jraft.core.ItCliServiceTest#testChangePeers



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to