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

solrj CloudSolrClient: add directUpdatesToLeadersOnly support

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.2, 7.0
    • Component/s: SolrJ
    • Labels:
      None

      Description

      solrj CloudSolrClient: add directUpdatesToLeadersOnly support

      (Marvin Justice, Christine Poerschke)

      Proposed change:

      • Addition of a directUpdatesToLeadersOnly flag to allow clients to request that direct updates be sent to the shard leaders and only to the shard leaders.

      Motivation:

      • In a scenario where there is temporarily no shard leader the update request will 'fail fast' allowing the client to handle retry logic.

      Related tickets:

      • SOLR-6312 concerns the ((currently) no longer used) updatesToLeaders flag. The updatesToLeaders logic however appears to be slightly different from the proposed directUpdatesToLeadersOnly logic: updatesToLeaders indicates that sending to leaders is preferred but not mandatory whereas directUpdatesToLeadersOnly mandates sending to leaders only.

        Attachments

        1. SOLR-9090.patch
          19 kB
          Christine Poerschke
        2. SOLR-9090.patch
          19 kB
          Christine Poerschke

          Issue Links

            Activity

              People

              • Assignee:
                cpoerschke Christine Poerschke
                Reporter:
                cpoerschke Christine Poerschke
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: