neoremind opened a new pull request, #16315:
URL: https://github.com/apache/lucene/pull/16315

   Address https://github.com/apache/lucene/pull/15886. 
   
   The test assumes a single segment but `newIndexWriterConfig()` can randomize 
maxBufferedDocs to a small value (2-15), the test creates 4 docs, with specific 
seed, it causes flush that creates multiple segments. Fix by calling 
`forceMerge(1)` before opening the reader.
   
   Verified the fix by running below command which has the failing seed:
   
   `./gradlew :lucene:core:test --tests 
"org.apache.lucene.index.TestIndexOptions.testMultiValueForcesDeoptimization" 
-Ptests.asserts=true -Ptests.file.encoding=UTF-8 -Ptests.gui=true 
-Ptests.jvmargs= -Ptests.jvms=4 -Ptests.seed=9D72F1A3BE205450 
-Ptests.vectorsize=256`


-- 
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