Tim-Brooks opened a new pull request, #16075:
URL: https://github.com/apache/lucene/pull/16075

   newIndexWriterConfig() randomizes maxBufferedDocs. When multiple writes
   (addBatch or addDocument) exceed the flush threshold, an auto-flush
   occurs mid-sequence producing more than one segment. getOnlyLeafReader
   then fails with "Expected only one leaf reader".
   
   Fix all eight affected tests by calling forceMerge(1) before opening
   the reader. Tests that assert specific doc-ID order also pin
   TieredMergePolicy: MockRandomMergePolicy can reverse segment order
   during a merge, so without it forceMerge(1) does not guarantee that
   the merged doc-IDs match insertion order.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to