Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-10799

Create a new function to get eligible replicas in HttpShardHandler

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      Extract a function called createEligibleReplicas from prepDistributed() in HttpShardHandler.
      This method takes a collection of all available replicas, a cluster state, onlyNrtReplicas boolean and a predicate and returns a list of eligible replicas.

      This helps with readability and could be used to perform further refactoring in the future

      Attachments

        1. SOLR-10799-6X.patch
          2 kB
          Domenico Fabio Marino
        2. SOLR-10799-6X.patch
          2 kB
          Domenico Fabio Marino
        3. SOLR-10799.patch
          4 kB
          Domenico Fabio Marino
        4. SOLR-10799.patch
          4 kB
          Domenico Fabio Marino

        Activity

          People

            tflobbe Tomas Eduardo Fernandez Lobbe
            dmarino Domenico Fabio Marino
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: