[
https://issues.apache.org/jira/browse/LUCENE-8334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16492496#comment-16492496
]
Simon Willnauer commented on LUCENE-8334:
-----------------------------------------
[~dweiss] I am glad you checking stuff out here. I did look and I wonder why
you can't just open the index you need from a directory and then steal the
SegmentReader from it's leaves? I can totally back this part out and open
another issue to discuss it, just asking to understand why there is no
alternative?
> Ensure SR#getSementInfo() returns snapshot
> ------------------------------------------
>
> Key: LUCENE-8334
> URL: https://issues.apache.org/jira/browse/LUCENE-8334
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Simon Willnauer
> Priority: Major
> Attachments: LUCENE-8334.patch
>
>
> The SegmentCommitInfo passed to the segment reader is mutated concurrently.
> An instance obtained from SR#getSegmentInfo() might return wrong delete
> counts
> or generation ids. This ensures that the SR will use a clone internally
> while stil
> maintaining the original SI since it's needed inside IW for maintainance
> like
> accessing pooled readers etc.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]