Skip to content

Conversation

@tteofili
Copy link
Contributor

fixes #125010

@tteofili tteofili added the >bug label Mar 19, 2025
@tteofili tteofili self-assigned this Mar 19, 2025
@tteofili tteofili added :Search Relevance/Search Catch all for Search Relevance auto-backport Automatically create backport pull requests when merged labels Mar 19, 2025
@elasticsearchmachine elasticsearchmachine added v9.1.0 Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch labels Mar 19, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

@tteofili tteofili added v9.0.0 and removed Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch labels Mar 19, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Mar 19, 2025
@elasticsearchmachine
Copy link
Collaborator

Hi @tteofili, I've created a changelog YAML for you.

- match: { hits.total.value: 2 }

- do:
catch: /Fielddata access on the _id field is disallowed/
Copy link
Member

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. field is no longer necessary for v9: https://github.com/elastic/elasticsearch/pull/118671/files

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

Copy link
Contributor

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?

Copy link
Contributor Author

@tteofili tteofili Mar 19, 2025

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 (_id to _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 _id should fail both on 8.x and 9.x (without explicitly enabling fielddata for _id), but I am fine with your suggestion of constraining the test to 9.x versions only.

Copy link
Member

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.

Copy link
Member

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.

@benwtrent benwtrent added >test Issues or PRs that are addressing/adding tests and removed >bug labels Mar 20, 2025
@tteofili tteofili merged commit 6d3dac3 into elastic:main Mar 20, 2025
17 checks passed
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
9.0 Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 125230

afoucret pushed a commit to afoucret/elasticsearch that referenced this pull request Mar 21, 2025
smalyshev pushed a commit to smalyshev/elasticsearch that referenced this pull request Mar 21, 2025
@tteofili
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
9.0

Questions ?

Please refer to the Backport tool documentation

tteofili added a commit to tteofili/elasticsearch that referenced this pull request Mar 24, 2025
* constrain the no-field scenario to 9.x

(cherry picked from commit 6d3dac3)

# Conflicts:
#	muted-tests.yml
tteofili added a commit that referenced this pull request Mar 25, 2025
… (#125508)

* Let random_score yaml test explicitly fail on _id field (#125230)

* constrain the no-field scenario to 9.x

(cherry picked from commit 6d3dac3)

* test fix - avoid synthetic cluster feature
omricohenn pushed a commit to omricohenn/elasticsearch that referenced this pull request Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged backport pending :Search Relevance/Search Catch all for Search Relevance Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch >test Issues or PRs that are addressing/adding tests v9.0.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] MixedClusterClientYamlTestSuiteIT test {p0=search/610_function_score/Random} failing

4 participants