Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SOLR-17184: Fixing sorting order of documents for comparison in PeerSyncTest to avoid random failures #2317

Merged
merged 2 commits into from
Feb 28, 2024

Conversation

justinrsweeney
Copy link
Contributor

@justinrsweeney justinrsweeney commented Feb 28, 2024

https://issues.apache.org/jira/browse/SOLR-17184

Description

This is a small fix for an issue with PeerSyncTest where it would randomly fail due to the order of documents returned.

Solution

Added a secondary sort on id for the queries to ensure consistent ordering.

Tests

Using existing tests.

Checklist

Please review the following and check all that apply:

  • I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability.
  • I have created a Jira issue and added the issue ID to my pull request title.
  • I have given Solr maintainers access to contribute to my PR branch. (optional but recommended)
  • I have developed this patch against the main branch.
  • I have run ./gradlew check.
  • I have added tests for my changes.
  • I have added documentation for the Reference Guide

@justinrsweeney justinrsweeney merged commit 77f994c into main Feb 28, 2024
3 checks passed
@justinrsweeney justinrsweeney deleted the SOLR-17184-peer-sync-test-random-failure branch February 28, 2024 18:56
justinrsweeney added a commit that referenced this pull request Feb 28, 2024
…yncTest to avoid random failures (#2317)

* SOLR-17184: Fixing sorting order of documents for comparison in PeerSyncTest to avoid random failures

* Tidying code
janhoy pushed a commit to solrbot/apache-_-solr that referenced this pull request Feb 29, 2024
…yncTest to avoid random failures (apache#2317)

* SOLR-17184: Fixing sorting order of documents for comparison in PeerSyncTest to avoid random failures

* Tidying code
Copy link
Contributor

@dsmiley dsmiley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix; thanks for fixing this test flapper!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants