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

Make stale state notification work without failing the requests

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.1, 6.0
    • clients - java, SolrCloud, SolrJ
    • None

    Description

      I wasn't sure whether to label this a bug or an improvement.

      For collections with stateFormat=2, we now fail requests (because of stale state) which we didn't previously. The client having stale cached cluster state is not a sufficient reason to fail and retry the entire request because in most of such cases, the node receiving the request is still perfectly capable of returning a valid response (either from local replicas or remote ones).

      We should find a better way to notify clients that they have stale state. Perhaps we can modify the response and add a "routing" section instead of outright exception.

      Attachments

        1. SOLR-7130.patch
          16 kB
          Noble Paul
        2. SOLR-7130.patch
          14 kB
          Noble Paul

        Issue Links

          Activity

            People

              noble.paul Noble Paul
              shalin Shalin Shekhar Mangar
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: