lucene-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrien Grand (Jira)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-9040) Questionable/Underspecified behavior of DirectoryReader.getIndexCommit() on NRT Readers
Date Tue, 19 Nov 2019 17:56:00 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-9040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16977663#comment-16977663
] 

Adrien Grand commented on LUCENE-9040:
--------------------------------------

getGeneration sounds like the most trappy method on ReaderCommit indeed. Documenting sounds
like a good idea to me, maybe we should consider making it throw an UOE on NRT readers.

> Questionable/Underspecified behavior of DirectoryReader.getIndexCommit() on NRT Readers
> ---------------------------------------------------------------------------------------
>
>                 Key: LUCENE-9040
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9040
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/index
>            Reporter: Chris M. Hostetter
>            Priority: Major
>         Attachments: LUCENE-9040.patch
>
>
> It seems like DirectoryReader.getIndexCommit() returns weird 
> results when using a "reopened" reader off of uncommited IW changes.
> Even though 2 diff readers will expose diff views of the index, they will 
> claim to refer to the same IndexCommit (generation).
> Original email thread (no replies): http://mail-archives.apache.org/mod_mbox/lucene-dev/201910.mbox/%3Calpine.DEB.2.21.1910301611190.8171%40slate%3E



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Mime
View raw message