Class 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 Detail

      • 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