[ 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-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org