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 (Updated) (JIRA)" <ji...@apache.org> on 2011/12/19 19:37:31 UTC

[jira] [Updated] (LUCENE-3658) NRTCachingDir has invalid asserts (if same file name is written twice)

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

Michael McCandless updated LUCENE-3658:
---------------------------------------

    Attachment: LUCENE-3658.patch

Patch.  I think it's ready...
                
> NRTCachingDir has invalid asserts (if same file name is written twice)
> ----------------------------------------------------------------------
>
>                 Key: LUCENE-3658
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3658
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 3.6, 4.0
>
>         Attachments: LUCENE-3658.patch
>
>
> Normally Lucene is write-once (except for segments.gen file, which NRTCachingDir never caches), but in some tests (TestDoc, TestCrash) we can write the same file more than once.
> I don't think NRTCachingDir should have these asserts, and I think on createOutput it should remove any old file if present.
> I also found & fixed a possible concurrency issue (if more than one thread syncs at the same time; IndexWriter doesn't ever do this today but it has in the past).

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