[
https://issues.apache.org/jira/browse/IGNITE-13495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17207850#comment-17207850
]
Sergei Ryzhov commented on IGNITE-13495:
----------------------------------------
[~ivandasch] hi, thanks for the review.
> ZookeeperDiscoverySpiMBeanImpl#getCoordinator can return invalid node as
> coordinator
> ------------------------------------------------------------------------------------
>
> Key: IGNITE-13495
> URL: https://issues.apache.org/jira/browse/IGNITE-13495
> Project: Ignite
> Issue Type: Bug
> Affects Versions: 2.9
> Reporter: Ivan Daschinskiy
> Assignee: Sergei Ryzhov
> Priority: Major
> Labels: newbie, zookeeper
> Fix For: 2.10
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)