Re: preferredLeader is useless during election or node restart

2023-03-06 Thread Pierre Salagnac
I discussed this issue offline with David, and I'm now working on a code change to make the preferredLeader to become the leader when we register a replica. The idea is, when we register a replica from Zookeeper, we check whether it has the preferred leader flag. When true, we tell the current lea

Re: preferredLeader is useless during election or node restart

2023-02-27 Thread David Smiley
I found this existing issue: https://issues.apache.org/jira/browse/SOLR-8238 I commented on it just now. Erick isn't around anymore but I'd appreciate input from anyone using "preferredLeader". ~ David Smiley Apache Lucene/Solr Search Developer http://www.linkedin.com/in/davidwsmiley On Mon, Fe

Re: preferredLeader is useless during election or node restart

2023-02-20 Thread David Smiley
Seems like a bug to me! Recommended reading: https://issues.apache.org/jira/browse/SOLR-6491 There's a treasure trove of information in JIRA to learn about how code comes to be; what were the intentions behind features; what alternatives were explored; pros & cons. ~ David Smiley Apache Lucene/Sol

preferredLeader is useless during election or node restart

2023-02-20 Thread Bruno Roustant
After many tests and deployments, it appears the preferredLeader flag described in the RebalanceLeader command doc [1] is not useful. It is taken into account only during the rebalance command. Afterwards, if there is a leader election or some node restart, it is ignored. Is this preferredLeader u