You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "neoremind (via GitHub)" <gi...@apache.org> on 2026/07/01 09:07:36 UTC

[PR] Fix flaky test TestIndexOptions > testMultiValueForcesDeoptimization [lucene]

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: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [PR] Fix flaky test TestIndexOptions > testMultiValueForcesDeoptimization [lucene]

Posted by "dweiss (via GitHub)" <gi...@apache.org>.
dweiss commented on PR #16315:
URL: https://github.com/apache/lucene/pull/16315#issuecomment-4852773256

   Thank you for fixing those test failures! I'll wait for builds to pass and merge.


-- 
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-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [PR] Fix flaky test TestIndexOptions > testMultiValueForcesDeoptimization [lucene]

Posted by "dweiss (via GitHub)" <gi...@apache.org>.
dweiss merged PR #16315:
URL: https://github.com/apache/lucene/pull/16315


-- 
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-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org