-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
[CI] SearchReplicaSelectionIT.testNodeSelection #70621
Comments
Pinging @elastic/es-search (Team:Search) |
Muted in #70622 |
Got another failure on this doing |
In case it helps to investigate the failure, here is another build scan (https://gradle-enterprise.elastic.co/s/3jolsfrjatrie) for a failure that occurred before the test was muted. |
The problem is related to the fact that some nodes are mocked with a search service that doesn't handle ARS:
It's easy to change but I wonder if this IT can be trusted. Any query in the background can change the score of the nodes and make the test fail. It's unclear to me how clusters are reused in IT tests but the assumptions only hold in isolation. |
@jimczi thank you for debugging it. I opened a PR with this fix: #71507. I ran the test a bunch of times with the fix and didn't see failures. I looked into My suggestion is to fix and reenable the test, but if observe more flakiness we can consider removing it. I find the test valuable -- debugging the test actually surfaced another ARS bug (which I'll file soon)! But it doesn't add huge value beyond the existing unit tests, and we should avoid spending a lot of effort fixing a fragile test. |
This happened locally, but I can see it failing in CI too.
Build scan:
https://gradle-enterprise.elastic.co/s/ewsio3cffibpa
Repro line:
Reproduces locally?:
Happened locally, but repro line did not reproduce locally.
Applicable branches:
master (though likely also 7.x)
Failure history:
Has failed a few times per day since it was introduced in #70283.
Failure excerpt:
The text was updated successfully, but these errors were encountered: