Skip to content

Commit ba37435

Browse files
authored
Fixing test failure #127657 (#127659)
1 parent 8047250 commit ba37435

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

muted-tests.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -435,9 +435,6 @@ tests:
435435
- class: org.elasticsearch.xpack.esql.qa.multi_node.EsqlSpecIT
436436
method: test {rerank.Reranker using another sort order ASYNC}
437437
issue: https://github.com/elastic/elasticsearch/issues/127638
438-
- class: org.elasticsearch.index.mapper.vectors.DenseVectorFieldMapperTests
439-
method: testRescoreVectorOldIndexVersion
440-
issue: https://github.com/elastic/elasticsearch/issues/127657
441438
- class: org.elasticsearch.xpack.search.CrossClusterAsyncSearchIT
442439
method: testCancellationViaTimeoutWithAllowPartialResultsSetToFalse
443440
issue: https://github.com/elastic/elasticsearch/issues/127096
@@ -454,6 +451,7 @@ tests:
454451
method: testRollover
455452
issue: https://github.com/elastic/elasticsearch/issues/127692
456453

454+
457455
# Examples:
458456
#
459457
# Mute a single test case in a YAML test suite:

server/src/test/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapperTests.java

+6-3
Original file line numberDiff line numberDiff line change
@@ -904,14 +904,17 @@ public void testRescoreVectorForNonQuantized() {
904904
}
905905

906906
public void testRescoreVectorOldIndexVersion() {
907-
IndexVersion incompatibleVersion = IndexVersionUtils.randomVersionBetween(
908-
random(),
907+
IndexVersion incompatibleVersion = randomFrom(
909908
IndexVersionUtils.randomVersionBetween(
910909
random(),
911910
IndexVersionUtils.getLowestReadCompatibleVersion(),
912911
IndexVersionUtils.getPreviousVersion(IndexVersions.ADD_RESCORE_PARAMS_TO_QUANTIZED_VECTORS_BACKPORT_8_X)
913912
),
914-
IndexVersionUtils.getPreviousVersion(IndexVersions.ADD_RESCORE_PARAMS_TO_QUANTIZED_VECTORS)
913+
IndexVersionUtils.randomVersionBetween(
914+
random(),
915+
IndexVersions.UPGRADE_TO_LUCENE_10_0_0,
916+
IndexVersionUtils.getPreviousVersion(IndexVersions.ADD_RESCORE_PARAMS_TO_QUANTIZED_VECTORS)
917+
)
915918
);
916919
for (String indexType : List.of("int8_hnsw", "int8_flat", "int4_hnsw", "int4_flat", "bbq_hnsw", "bbq_flat")) {
917920
expectThrows(

0 commit comments

Comments
 (0)