s1monw commented on code in PR #12685: URL: https://github.com/apache/lucene/pull/12685#discussion_r1360623450
########## lucene/core/src/java/org/apache/lucene/index/IndexWriter.java: ########## @@ -3368,9 +3368,15 @@ public void addIndexesReaderMerge(MergePolicy.OneMerge merge) throws IOException String mergedName = newSegmentName(); Directory mergeDirectory = mergeScheduler.wrapForMerge(merge, directory); int numSoftDeleted = 0; + boolean hasBlocks = false; for (MergePolicy.MergeReader reader : merge.getMergeReader()) { CodecReader leaf = reader.codecReader; numDocs += leaf.numDocs(); + if (reader.reader == null) { + hasBlocks = true; // NOCOMMIT: can we just assume that it has blocks and go with worst case here? Review Comment: note there is a NOCOMMIT here that needs to be resolved -- 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