-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Let random_score yaml test explicitly fail on _id field #125230
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
0e58c98
Explicitly fail random_score on _id
tteofili 5c1f7a3
unmuted test
tteofili 2e5f0dc
Update docs/changelog/125230.yaml
tteofili 7d537ba
constrain the no-field scenario to 9.x
tteofili a08ae2a
Merge branch 'fsrandom_yaml_fix' of github.com:tteofili/elasticsearch…
tteofili e9c2a7c
Merge branch 'main' of github.com:elastic/elasticsearch into fsrandom…
tteofili fc6d12c
revert unwanted change
tteofili 513194e
Delete docs/changelog/125230.yaml
tteofili 1f30dc5
Merge branch 'main' of github.com:elastic/elasticsearch into fsrandom…
tteofili b3a1c62
Merge branch 'fsrandom_yaml_fix' of github.com:tteofili/elasticsearch…
tteofili File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| pr: 125230 | ||
| summary: Let `random_score` yaml test explicitly fail on `_id` field | ||
| area: Search | ||
| type: bug | ||
| issues: | ||
| - 125010 |
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see how this improves things? I think we should block bwc testing.
fieldis no longer necessary for v9: https://github.com/elastic/elasticsearch/pull/118671/filesI am not sure why this is failing at all. Is it failing in a mixed cluster? If so, we should adjust the assertions when hitting an older cluster vs v9.
But I do not like changing the test behavior like this. We are purposefully testing that not providing a field works. Let's continue to do that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this test pass if we provide rest api compatibility?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the thing is that the actual field being used underneath has changed from 8.x to 9.x (
_idto_seqno), so the original idea was to make sure that this works across versions even when not supplying any field.having an explicit test with
_idshould fail both on 8.x and 9.x (without explicitly enablingfielddatafor_id), but I am fine with your suggestion of constraining the test to 9.x versions only.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The failure is that there is a deprecation warning indicating that "Hey, we will require you to provide a field in the future", which isn't the case any longer.
The user's API experience is largely unchanged, except now they do NOT get a deprecation warning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AH, I see the test was added here: #124893
If we want this test to run in 8.x, we should have a separate one that is designed for 8.x that exercises the paths we expect there. But given that this test only exists in v9.0, maybe we only have it run there.