lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raintung Li (JIRA)" <>
Subject [jira] [Created] (SOLR-4055) Remove/Reload the collection will occur the thread safe issue.
Date Fri, 09 Nov 2012 10:10:12 GMT
Raintung Li created SOLR-4055:

             Summary: Remove/Reload the collection will occur the thread safe issue.
                 Key: SOLR-4055
             Project: Solr
          Issue Type: Bug
          Components: SolrCloud
    Affects Versions: 4.0, 4.0-BETA, 4.0-ALPHA
         Environment: Solr cloud
            Reporter: Raintung Li

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.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message