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

   ### Description
   
   Fixes flaky test - https://github.com/apache/lucene/issues/15798
   
   <!--
   If this is your first contribution to Lucene, please make sure you have 
reviewed the contribution guide.
   https://github.com/apache/lucene/blob/main/CONTRIBUTING.md
   -->
   
   **To reproduce the failure with the exact seed from the issue, ran below:**
   
   ./gradlew :lucene:core:test --tests 
"org.apache.lucene.search.TestNumericFieldStats.testGetStatsMultipleSegments" 
-Ptests.seed=51F086718472D0EF
   
   That fails with AssertionError at line 236 because the randomized 
MergePolicy from newIndexWriterConfig() merges the 3 tiny segments into 1, so 
reader.leaves().size() > 1 is false.
   
   
   **To verify the fix, re-ran the test with the original failing seed to 
confirm its fixed now.**
   
   Also ran all the tests 20 times to verify further:
   ```
   ./gradlew :lucene:core:test --tests 
"org.apache.lucene.search.TestNumericFieldStats" -Ptests.iters=20
   ```


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