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

Create a new function to get eligible replicas in HttpShardHandler

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      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

            • Assignee:
              tomasflobbe Tomás Fernández Löbbe
              Reporter:
              dmarino Domenico Fabio Marino
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: