What I forgot is to put in a check if the cluster is already activated and do not do activation.
Can this lead to issues ? Basically I am trying to find the root cause of the issue below.
Because when I am restarting two nodes in a four node cluster I am getting this error.
Caused by: org.apache. ignite.spi.IgniteSpiException: Attempting to join node with larger distributed metastorage version id. The node is most likely in invalid state and can't be joined. at org.apache.ignite.spi.discovery.tcp.TcpDiscoveryspi.checkFailedError(TcpDiscoverySpi.java:1997).
After this those two nodes start working again only after a cleanup. My situation is that I have 4 node ignite clusters with persistence with Ignite version 2.8.0. These run in an embedded manner within 4 apps running in 4 VMS.
In your particular case, there is corruption in your metastorage.
Metastorage is data used to keep
cluster meta information(details about cluster config, operations, cache
setup, etc) Two nodes
have different data in their metastore, and this is not allowed.
It is likely you changed baseline topology incorrectly. Read through both
links above to
make sure the steps followed are as specified.
If you are able to reproduce it, send a list of steps to do so, the code
you use to set the baseline topology, your Ignite config, and possibly a