Description
After SOLR-12011 get committed, we can lead into the case when no active replicas are qualified to become the leader. The only 2 solutions for users in this case are
- Using FORCE_LEADER API
- Bring back the old leader
This ticket will introduce a leader election timeout so current active replicas can ignore the lost updates and go ahead to become the leader. I think it will be better and not confuse users by reusing leaderVoteWait (the current usage of leaderVoteWait for waiting replicas come up before leader election is no longer needed)