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

solrj CloudSolrClient: add directUpdatesToLeadersOnly support

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 6.2, 7.0
    • SolrJ
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: