Chris,
It seems that Consul IP finder does not behave in a way Apache Ignite
expects its IP finders to do.
Please take a look at existing implementations. Local address should be
registered and made available to other nodes before local node starts
joining procedure. We do this right after we bind discovery server to a port
on local machine. This is essential for resolving race condition you talk
about.
If you can re-approach this to share the address instead of adding it to a
local collection then your problem should be solved.
@Override
public void registerAddresses(Collection<InetSocketAddress> addrs)
throws IgniteSpiException {
locallyRegisteredAddresses.addAll(addrs); // This is not correct for
IP FInder. Address should be available to other starting nodes to resolve
concurrent start situation.
}
I am new to Consul. Can you please see if what I talk about is possible?
Thanks!
Yakov
--
View this message in context:
http://apache-ignite-users.70518.x6.nabble.com/Race-Condition-at-Grid-Startup-tp13038p13096.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.