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

Remove/Reload the collection has the thread safe issue.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0-ALPHA, 4.0-BETA, 4.0
    • Fix Version/s: 4.1, 6.0
    • Component/s: SolrCloud
    • Labels:
      None
    • Environment:

      Solr cloud

      Description

      OverseerCollectionProcessor class for collectionCmd method has thread safe issue.
      The major issue is ModifiableSolrParams params instance will deliver into other thread use(HttpShardHandler.submit). Modify parameter will affect the other threads the correct parameter.

      In the method collectionCmd , change the value params.set(CoreAdminParams.CORE, node.getStr(ZkStateReader.CORE_NAME_PROP)); , that occur send the http request thread will get the wrong core name. The result is that can't delete/reload the right core.

      The easy fix is clone the ModifiableSolrParams for every request.

        Attachments

        1. patch-4055
          2 kB
          Raintung Li

          Activity

            People

            • Assignee:
              markrmiller@gmail.com Mark Miller
              Reporter:
              raintung.li Raintung Li
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: