diff --git a/muted-tests.yml b/muted-tests.yml index f33269d08864d..b4d95755d30ac 100644 --- a/muted-tests.yml +++ b/muted-tests.yml @@ -441,9 +441,6 @@ tests: - class: org.elasticsearch.xpack.esql.qa.multi_node.EsqlSpecIT method: test {rerank.Reranker using another sort order ASYNC} issue: https://github.com/elastic/elasticsearch/issues/127638 -- class: org.elasticsearch.index.mapper.vectors.DenseVectorFieldMapperTests - method: testRescoreVectorOldIndexVersion - issue: https://github.com/elastic/elasticsearch/issues/127657 - class: org.elasticsearch.xpack.search.CrossClusterAsyncSearchIT method: testCancellationViaTimeoutWithAllowPartialResultsSetToFalse issue: https://github.com/elastic/elasticsearch/issues/127096 @@ -460,6 +457,7 @@ tests: method: testRollover issue: https://github.com/elastic/elasticsearch/issues/127692 + # Examples: # # Mute a single test case in a YAML test suite: diff --git a/server/src/test/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapperTests.java b/server/src/test/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapperTests.java index d57acf786d715..ba251cb14b8a4 100644 --- a/server/src/test/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapperTests.java +++ b/server/src/test/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapperTests.java @@ -904,14 +904,17 @@ public void testRescoreVectorForNonQuantized() { } public void testRescoreVectorOldIndexVersion() { - IndexVersion incompatibleVersion = IndexVersionUtils.randomVersionBetween( - random(), + IndexVersion incompatibleVersion = randomFrom( IndexVersionUtils.randomVersionBetween( random(), IndexVersionUtils.getLowestReadCompatibleVersion(), IndexVersionUtils.getPreviousVersion(IndexVersions.ADD_RESCORE_PARAMS_TO_QUANTIZED_VECTORS_BACKPORT_8_X) ), - IndexVersionUtils.getPreviousVersion(IndexVersions.ADD_RESCORE_PARAMS_TO_QUANTIZED_VECTORS) + IndexVersionUtils.randomVersionBetween( + random(), + IndexVersions.UPGRADE_TO_LUCENE_10_0_0, + IndexVersionUtils.getPreviousVersion(IndexVersions.ADD_RESCORE_PARAMS_TO_QUANTIZED_VECTORS) + ) ); for (String indexType : List.of("int8_hnsw", "int8_flat", "int4_hnsw", "int4_flat", "bbq_hnsw", "bbq_flat")) { expectThrows(