Skip to content

Fixing test failure #127657 #127659

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 2 commits into from
May 5, 2025
Merged

Fixing test failure #127657 #127659

merged 2 commits into from
May 5, 2025

Conversation

benwtrent
Copy link
Member

I did the old index pattern request poorly.

closes: #127657

@benwtrent benwtrent added >test Issues or PRs that are addressing/adding tests :Search Relevance/Vectors Vector search v9.1.0 labels May 2, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label May 2, 2025
@@ -904,14 +904,17 @@ public void testRescoreVectorForNonQuantized() {
}

public void testRescoreVectorOldIndexVersion() {
IndexVersion incompatibleVersion = IndexVersionUtils.randomVersionBetween(
random(),
IndexVersion incompatibleVersion = randomFrom(
Copy link
Contributor

Choose a reason for hiding this comment

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

I understand what this is trying to do but it looks a bit confusing to me. Why not the below:

IndexVersionUtils.randomVersionBetween(
  random(),
  Version::min(IndexVersionUtils.getLowestReadCompatibleVersion(), IndexVersions.UPGRADE_TO_LUCENE_10_0_0)
  Version::max(IndexVersionUtils.getPreviousVersion(IndexVersions.ADD_RESCORE_PARAMS_TO_QUANTIZED_VECTORS_BACKPORT_8_X), IndexVersionUtils.getPreviousVersion(IndexVersions.ADD_RESCORE_PARAMS_TO_QUANTIZED_VECTORS))
)

Copy link
Member Author

Choose a reason for hiding this comment

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

The problem with this is that if somebody adds a new index version for 8.x that is after ADD_RESCORE_PARAMS_TO_QUANTIZED_VECTORS_BACKPORT_8_X, it will have the version capability, but will be a version smaller than ADD_RESCORE_PARAMS_TO_QUANTIZED_VECTORS.

This is why its a disjoint version set.

@benwtrent benwtrent merged commit ba37435 into elastic:main May 5, 2025
17 checks passed
@benwtrent benwtrent deleted the test/fix-127657 branch May 5, 2025 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Search Relevance/Vectors Vector search Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch >test Issues or PRs that are addressing/adding tests v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] DenseVectorFieldMapperTests testRescoreVectorOldIndexVersion failing
3 participants