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

Michael McCandless updated LUCENE-2486:
---------------------------------------

    Attachment: LUCENE-2486.patch

The fix was simple: move the logic for setting the docStoreIsCompoundFile on 
the merge's SegmentInfo up higher, to before we open the reader for warming, as 
well as incRef'ing the files for the merged segment.

> when opening the merged SegmentReader, IW attempts to open store files that 
> were deleted
> ----------------------------------------------------------------------------------------
>
>                 Key: LUCENE-2486
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2486
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 2.9.3, 3.0.2, 3.1, 4.0
>
>         Attachments: LUCENE-2486.patch
>
>
> The issue happens when a merge runs that does not merge the doc stores, those 
> doc stores are still being written to, IW is using CFS, and while the merge 
> is running the doc stores get closed and turned into a cfx file.
> When we then try to open the reader (for warming), which as of LUCENE-2311 
> will now [correctly] open the doc stores, we hit FNFE because the SegmentInfo 
> for the merge does not realize that the doc stores were turned into  a cfx.
> This issue does affect trunk; if you crank up the #docs in the test, it 
> happens consistently (I will tie this to _TestUtil.getRandomMultiplier!).

-- 
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]

Reply via email to