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 2010/11/13 19:43:13 UTC

[jira] Updated: (LUCENE-2759) We should never open an IndexInput when an IndexOutput is still open

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

Michael McCandless updated LUCENE-2759:
---------------------------------------

    Attachment: LUCENE-2759.patch

Patch.

I also fixed a concurrency issue with MockDirWrapper, and an intermittent failure in TestCachingWrapper/SpanFilter.


> We should never open an IndexInput when an IndexOutput is still open
> --------------------------------------------------------------------
>
>                 Key: LUCENE-2759
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2759
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 2.9.4, 3.0.3, 3.1, 4.0
>
>         Attachments: LUCENE-2759.patch
>
>
> I modified MockDirWrapper to assert this (except for
> segments_N/segments.gen, where it's expected), and, it uncovered a
> couple of places involving NRT readers where we open a shared doc
> store file that's still open for writing.
> First, if you install a merged segment warmer, we were failing to
> force the merge of the doc stores in this case, thus potentially
> opening the same doc stores that are also still open for writing.
> Second, if you're actively adding docs in other threads when you call
> IW.getReader(), the other threads could sneak in and flush new
> segments sharing the doc stores.  The returned reader then opens the
> doc store files that are still open for writing.

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