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

NPE in SolrClientCache following collection reload

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0.1, 6.1
    • Component/s: None
    • Labels:
      None

      Description

      Currently the StreamHandler opens the client cache only once when the StreamHandler is initialized. During a collection reload the client cache is closed by the closeHook, but not re-opened. This causes null pointers as the CloudSolrClient sets the zkStateReader = null when it's closed.

      A simple fix for this is to have the SolrClientCache clear it's internal map of clients after closing. The next time the cache is accessed it will then create new clients.

        Attachments

        1. SOLR-9059.patch
          2 kB
          Joel Bernstein
        2. SOLR-9059.patch
          3 kB
          Joel Bernstein

          Activity

            People

            • Assignee:
              joel.bernstein Joel Bernstein
              Reporter:
              joel.bernstein Joel Bernstein
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: