[ 
https://issues.apache.org/jira/browse/LUCENE-4876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adrien Grand updated LUCENE-4876:
---------------------------------

    Attachment: LUCENE-4876.patch

New patch:

 * Added CHANGES entries

 * Added documentation to PersistentSnapshotDeletionPolicy to make clear that 
instances of this classes must not be shared across IndexWriters

 * Some Solr tests were failing because Solr expects SolrCore.solrDelPolicy to 
be the same instance as IndexWriter.getConfig().getIndexDeletionPolicy(). There 
is sensible code relying on it (SnapShooter/ReplicationHandler in particular) 
so I preferred emulating the old behavior by making 
IndexDeletetionPolicyWrapper.clone() return 'this' for the moment. This is not 
a problem because each core has its own private deletion policy and never opens 
more than one IndexWriter with it.
                
> IndexWriterConfig.clone should clone the MergeScheduler
> -------------------------------------------------------
>
>                 Key: LUCENE-4876
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4876
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>             Fix For: 4.3
>
>         Attachments: LUCENE-4876.patch, LUCENE-4876.patch
>
>
> ConcurrentMergeScheduler has a List<MergeThread> member to track the running 
> merging threads, so IndexWriterConfig.clone should clone the merge scheduler 
> so that both IndexWriterConfig instances are independant.

--
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: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to