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: [email protected]
For additional commands, e-mail: [email protected]