[
https://issues.apache.org/jira/browse/LUCENE-2790?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shai Erera updated LUCENE-2790:
-------------------------------
Attachment: LUCENE-2790.patch
Patch fixes the threading issue Earwin reported, by checking whether to create
the CFS in a sync block. Also, after discussing this on IRC, the code is
further simplified by creating the compound file before the new segment is
committed.
However, some tests still fail on ConcurrentModException. I cannot debug it
now, so am posting the patch in case someone wants to take a stab. I can
continue later. To reproduce the failure:
ant test -Dtestcase=TestIndexWriter -Dtestmethod=testDeleteUnusedFiles
-Dtests.seed=-1861905402886420424:-8896948763797565454
-Dtests.codec=randomPerField
> IndexWriter should call MP.useCompoundFile and not LogMP.getUseCompoundFile
> ---------------------------------------------------------------------------
>
> Key: LUCENE-2790
> URL: https://issues.apache.org/jira/browse/LUCENE-2790
> Project: Lucene - Java
> Issue Type: Improvement
> Components: Index
> Reporter: Shai Erera
> Assignee: Shai Erera
> Priority: Minor
> Fix For: 3.1, 4.0
>
> Attachments: LUCENE-2790.patch, LUCENE-2790.patch, LUCENE-2790.patch
>
>
> Spin off from here:
> http://www.gossamer-threads.com/lists/lucene/java-dev/112311.
> I will attach a patch shortly that addresses the issue on trunk.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]