I read about leader election using zookeeper. https://zookeeper.apache.org/doc/current/recipes.html#sc_leaderElection
I have a small question ro ask. After a node creared "/election" node every node creates child nodes with sequential and ephemeral flags. In what condition nodes decide to select all the child nodes and elect smallest one as the leader. In other words "what prevents a slightly late node joining the election". Is it a timeout? If so how it is handled in Zookeeper internally? Please advise. Thank you.
