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

HTTP Caching related headers are incorrect for distributed searches

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.4
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      When searching across multiple shards with HTTP caching enabled, the Caching related headers (ETag, Cache-Control, Last-Modified) in the response are based on the "index" of the coordinating solr core, and are not influenced by the properties of the shards. For example, take the query

      http://localhost:8983/solr/core1/select/?q=google&shards=localhost:8983/solr/core2,localhost:8983/solr/core3

      ETag should be calculated off of core2 and core3, instead it's being calculated from the index of core1.

      This results in index modificaitons to to core2 or core3 being "invisible" to clients which query this URL using "If-None-Match" or "If-Modified-Since" type requests

        Activity

        Hide
        janhoy Jan Høydahl added a comment -

        Is this still a problem? (Have not checked the source)

        Show
        janhoy Jan Høydahl added a comment - Is this still a problem? (Have not checked the source)

          People

          • Assignee:
            Unassigned
            Reporter:
            cjackson Charlie Jackson
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:

              Development