Description
Due to invalid algorithm in org.apache.ignite.spi.discovery.zk.internal.ZookeeperDiscoveryImpl#getCoordinator
sometimes invalid coordinator could be returned
Consider scenarion:
1. Start server #1
2. Start client
3. Start server #2
4. Stop server #1
After this, ZookeeperDiscoverySpiMBeanImpl#getCoordinator returns as coordinator a client, because it is the oldest node in topology.
We should fix org.apache.ignite.spi.discovery.zk.internal.ZookeeperDiscoveryImpl#getCoordinator to return oldest server, not any node.
Attachments
Issue Links
- links to