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

Making sub-classes LBHttpSolrClient possible to use different logics for picking server

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 5.0
    • 8.0
    • SolrJ

    Description

      moved ServerWrapper logic in LBHttpSolrClient.request(...) to a method to allow subclasses to override.  expose other fields as protected.  This allows sub-classes to apply different logic other than round-robin, when using the LBHttpSolrClient class.  In my case, we wish to use an algorithm that only uses the first / primary server unless it is unavailable, and then it uses the secondary server(s).

       

      Can someone please commit this as soon as possible.  I don't necessarily need it to be back-ported, having in 7.4.1 would suffice.

      Thanks!

      Attachments

        1. SOLR-12790-1.patch
          4 kB
          Aaron LaBella

        Activity

          People

            caomanhdat Cao Manh Dat
            aaronlab Aaron LaBella
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: