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

refactor preferLocalShards implementation

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 6.4, 7.0
    • None
    • None

    Description

      This ticket proposes to refactor the existing preferLocalShards implementation (from SOLR-6832 and SOLR-8298) based upon the recent (in SOLR-8332) ReplicaListTransformer addition.

      The intention of the refactor is to encapsulate the local shard url selection logic within the HttpShardHandlerFactory.getReplicaListTransformer method (it is currently spread across the public HttpShardHandler.prepDistributed and the private HttpShardHandler.getURLs method) and to thus remove the ResponseBuilder.preferredHostAddress field.

      Attachments

        1. SOLR-9758.patch
          14 kB
          Christine Poerschke

        Issue Links

          Activity

            People

              cpoerschke Christine Poerschke
              cpoerschke Christine Poerschke
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: