uschindler commented on code in PR #13535: URL: https://github.com/apache/lucene/pull/13535#discussion_r1665893332
########## lucene/core/src/java/org/apache/lucene/index/ReadersAndUpdates.java: ########## @@ -578,7 +578,8 @@ public synchronized boolean writeFieldUpdates( // IndexWriter.commitMergedDeletes). final SegmentReader reader; if (this.reader == null) { - reader = new SegmentReader(info, indexCreatedVersionMajor, IOContext.READONCE); + IOContext context = info.info.getUseCompoundFile() ? IOContext.DEFAULT : IOContext.READONCE; Review Comment: Hm damn. At least the other one only reading field Infos looks fine. But this should also fail if it is not a compound file... -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org