Class LeaderRecoveryWatcher

java.lang.Object
org.apache.solr.cloud.api.collections.LeaderRecoveryWatcher
All Implemented Interfaces:
org.apache.solr.common.cloud.CollectionStateWatcher

public class LeaderRecoveryWatcher extends Object implements org.apache.solr.common.cloud.CollectionStateWatcher
We use this watcher to wait for any eligible replica in a shard to become active so that it can become a leader.
  • Method Details

    • onStateChanged

      public boolean onStateChanged(Set<String> liveNodes, org.apache.solr.common.cloud.DocCollection collectionState)
      Specified by:
      onStateChanged in interface org.apache.solr.common.cloud.CollectionStateWatcher