easyice commented on issue #14020: URL: https://github.com/apache/lucene/issues/14020#issuecomment-2523524793
It seems related to LUCENE-8484, a fully deleted segments with soft delete (`numDocs() == 0`) will skip wrap the reader in `SoftDeletesDirectoryReaderWrapper#SoftDeletesSubReaderWrapper#wrap ` Line 107: https://github.com/apache/lucene/blob/deae39b01dec5d212b365afd220f6df000899bf3/lucene/core/src/java/org/apache/lucene/index/SoftDeletesDirectoryReaderWrapper.java#L104-L110 If `maxDoc()` is greater than 0 in the skipped leaf reader, the maxDoc count for the reader will not include the skipped leaf reader, which then causes an assert failure for `numDeletedDocs()`. so, can we simply avoid fully deleted segments to fix it? Any thoughts? -- 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