Skip to content

Fix IndexSortUpgradeIT test#128900

Merged
elasticsearchmachine merged 9 commits intoelastic:mainfrom
mayya-sharipova:fix_sort_tests
Jun 4, 2025
Merged

Fix IndexSortUpgradeIT test#128900
elasticsearchmachine merged 9 commits intoelastic:mainfrom
mayya-sharipova:fix_sort_tests

Conversation

@mayya-sharipova
Copy link
Copy Markdown
Contributor

Relates to PR #127968

Closes #128861, #128862, #128863

@mayya-sharipova mayya-sharipova added >bug :Search Relevance/Search Catch all for Search Relevance v9.1.0 labels Jun 4, 2025
@mayya-sharipova mayya-sharipova marked this pull request as ready for review June 4, 2025 14:06
@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Jun 4, 2025
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Hi @mayya-sharipova, I've created a changelog YAML for you.

Comment on lines +149 to +152
// we introduced INT sort type in 8.19 and from 9.1
if (getNumericType().sortFieldType != SortField.Type.INT
|| indexCreatedVersion.onOrAfter(IndexVersions.INDEX_INT_SORT_INT_TYPE)
|| indexCreatedVersion.between(IndexVersions.INDEX_INT_SORT_INT_TYPE_8_19, UPGRADE_TO_LUCENE_10_0_0)) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

❤️ yes! OK, I understand why this was failing on 8.19 now. Excellent.

public static final IndexVersion RESCORE_PARAMS_ALLOW_ZERO_TO_QUANTIZED_VECTORS_BACKPORT_8_X = def(8_529_0_00, Version.LUCENE_9_12_1);
public static final IndexVersion DEFAULT_OVERSAMPLE_VALUE_FOR_BBQ_BACKPORT_8_X = def(8_530_0_00, Version.LUCENE_9_12_1);
public static final IndexVersion SEMANTIC_TEXT_DEFAULTS_TO_BBQ_BACKPORT_8_X = def(8_531_0_00, Version.LUCENE_9_12_1);
public static final IndexVersion INDEX_INT_SORT_INT_TYPE_8_19 = def(8_532_0_00, Version.LUCENE_9_12_1);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Verified that the 8.19 branch is using:

    public static final IndexVersion INDEX_INT_SORT_INT_TYPE_8_19 = def(8_532_0_00, Version.LUCENE_9_12_1);

So, the versions all line up. 👍

@benwtrent benwtrent added >test Issues or PRs that are addressing/adding tests and removed >bug labels Jun 4, 2025
@mayya-sharipova mayya-sharipova added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Jun 4, 2025
@elasticsearchmachine elasticsearchmachine merged commit 4880245 into elastic:main Jun 4, 2025
18 checks passed
@mayya-sharipova mayya-sharipova deleted the fix_sort_tests branch June 4, 2025 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :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.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] IndexSortUpgradeIT testIndexSortForNumericTypes {upgradedNodes=3} failing

3 participants