Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-13951 Avoid replica state updates to state.json
  3. SOLR-14003

Refactor code to avoid reading state of replica from the data object

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      Deprecate

      • Replica#getState()
      • Replica#isActive()

      Use an implementation of ShardStateProvider to fetch the state

      /**An implementation that fetches the state of each replica in a collection
       * and it also provides the leader of shards
       *
       */
      public interface ShardStateProvider {
      
        Replica.State getState(Replica replica);
      
      /**get the leader
      */
        Replica getLeader(Slice slice);
      
       /** Wait if there is no leader available*/
        Replica getLeader(Slice slice, int waitTime);
      
        boolean isActive(Replica replica);
      }
      
      

      Attachments

        Issue Links

          Activity

            People

              noble.paul Noble Paul
              noble.paul Noble Paul
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 40m
                  3h 40m