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

Shai Erera resolved LUCENE-4060.
--------------------------------

       Resolution: Cannot Reproduce
    Lucene Fields: New,Patch Available  (was: New)

Committed rev 1339032 (3.6.1) and 1339047 (trunk). Also add CHANGES entry and a 
concurrency test to TestAddTaxonomy.

Thanks Gilad !
                
> DirectoryTaxonomyWriter.addTaxonomies does not work well in a multi-threaded 
> environment
> ----------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4060
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4060
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: modules/facet
>            Reporter: Shai Erera
>            Assignee: Shai Erera
>             Fix For: 4.0, 3.6.1
>
>         Attachments: LUCENE-4060.patch
>
>
> DirTaxoWriter.addTaxonomies may lead to a corrupt taxonomy index if 
> addCategory is called in parallel. While reviewing the code, the following 
> changes seemed to be required:
> * Fix the bug
> * Simplify addTaxonomies code -- it's very complicated, seems rather 
> inefficient, and seems to take care of more than is needed.
> * The intention to support multiple taxonomies is unclear, especially since 
> FacetsPayloadProcessor can handle only one Directory and one OrdinalMap at a 
> time. So I'd like to change the method to addTaxonomy. I anyway don't see the 
> reason to add multiple taxonomies at once, one can call addTaxonomy several 
> times.
> I will post a patch soon.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to