-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix random failures in InternalTopHitsTests#testReduceRandom (#53832)
The test was randomly and very rarely failing due to generating the same sort key for multiple records, which was making order of these records in the results nondeterministic. While investigating the test I also found that the data wasn't generated in the way that matches the actual data. Normally, the order of documents in hits and scoreDocs in InternalTopHits should be the same. However, in the test only scoreDocs were sorted which was cause very confusing failure messages. This commit fixes this issue as well. Fixes #53676
- Loading branch information
Showing
1 changed file
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters