You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2007/12/03 16:36:43 UTC

[jira] Updated: (LUCENE-1075) Possible thread hazard in IndexWriter.close(false)

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

Michael McCandless updated LUCENE-1075:
---------------------------------------

    Attachment: LUCENE-1075.patch

Attached patch.  I'll commit in 1 or 2 days.

> Possible thread hazard in IndexWriter.close(false)
> --------------------------------------------------
>
>                 Key: LUCENE-1075
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1075
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 2.3
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>            Priority: Minor
>             Fix For: 2.3
>
>         Attachments: LUCENE-1075.patch
>
>
> Spinoff from this thread:
>   http://www.gossamer-threads.com/lists/lucene/java-dev/55391
> On reviewing the code I found one case where an aborted merge (from
> calling close(false)) could write to files that a newly opened
> IndexWriter would also try to write to.
> I strengthened an existing test case in TestConcurrentMergeScheduler
> to tickle this case, and also modified MockRAMDirectory to throw an
> IOException if ever a file besides segments.gen is overwritten.
> However, strangely, I can't get an unhandled exception to occur during
> the test and I'm not sure why.  Still I think this is a good defensive
> check so we should commit it.

-- 
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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org