Skip to content

Commit a65331f

Browse files
committed
Merge remote-tracking branch 'carlosdelest/tests/fix-dense-vector-update-tests' into tests/fix-dense-vector-update-tests
# Conflicts: # muted-tests.yml
2 parents f794def + 3d96ea7 commit a65331f

File tree

2 files changed

+21
-19
lines changed

2 files changed

+21
-19
lines changed

muted-tests.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -512,24 +512,21 @@ tests:
512512
- class: org.elasticsearch.xpack.test.rest.XPackRestIT
513513
method: test {p0=transform/transforms_crud/Test transform where source query is invalid}
514514
issue: https://github.com/elastic/elasticsearch/issues/132111
515+
- class: org.elasticsearch.upgrades.RunningSnapshotIT
516+
method: testRunningSnapshotCompleteAfterUpgrade {upgradedNodes=1}
517+
issue: https://github.com/elastic/elasticsearch/issues/132135
518+
- class: org.elasticsearch.upgrades.RunningSnapshotIT
519+
method: testRunningSnapshotCompleteAfterUpgrade {upgradedNodes=2}
520+
issue: https://github.com/elastic/elasticsearch/issues/132136
521+
- class: org.elasticsearch.upgrades.RunningSnapshotIT
522+
method: testRunningSnapshotCompleteAfterUpgrade {upgradedNodes=3}
523+
issue: https://github.com/elastic/elasticsearch/issues/132137
515524
- class: org.elasticsearch.index.engine.MergeWithLowDiskSpaceIT
516525
method: testRelocationWhileForceMerging
517526
issue: https://github.com/elastic/elasticsearch/issues/131789
518527
- class: org.elasticsearch.indices.cluster.FieldCapsForceConnectTimeoutIT
519528
method: testTimeoutSetting
520529
issue: https://github.com/elastic/elasticsearch/issues/132179
521-
- class: org.elasticsearch.xpack.security.authz.store.CompositeRolesStoreTests
522-
method: testCacheCleanupOnProjectDeletion
523-
issue: https://github.com/elastic/elasticsearch/issues/132218
524-
- class: org.elasticsearch.test.rest.yaml.MDPYamlTestSuiteIT
525-
method: test {yaml=mdp/10_basic/Index using shared data path}
526-
issue: https://github.com/elastic/elasticsearch/issues/132223
527-
- class: org.elasticsearch.xpack.logsdb.qa.StandardVersusStandardReindexedIntoLogsDbChallengeRestIT
528-
method: testTermsQuery
529-
issue: https://github.com/elastic/elasticsearch/issues/132225
530-
- class: org.elasticsearch.xpack.logsdb.qa.StoredSourceLogsDbVersusReindexedLogsDbChallengeRestIT
531-
method: testTermsQuery
532-
issue: https://github.com/elastic/elasticsearch/issues/132226
533530

534531
# Examples:
535532
#

server/src/internalClusterTest/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldIndexTypeUpdateIT.java

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import org.elasticsearch.common.settings.Settings;
2020
import org.elasticsearch.rest.RestStatus;
2121
import org.elasticsearch.search.vectors.KnnVectorQueryBuilder;
22-
import org.elasticsearch.search.vectors.VectorData;
2322
import org.elasticsearch.test.ESIntegTestCase;
2423
import org.elasticsearch.xcontent.XContentBuilder;
2524
import org.elasticsearch.xcontent.XContentFactory;
@@ -131,19 +130,25 @@ public void testDenseVectorMappingUpdate() throws Exception {
131130
int expectedDocs = docsBefore + docsAfter;
132131

133132
// Count query
134-
assertNoFailuresAndResponse(client().prepareSearch(INDEX_NAME).setSize(0).setTrackTotalHits(true).setSize(expectedDocs), response -> {
135-
assertHitCount(response, expectedDocs);
136-
});
133+
assertNoFailuresAndResponse(
134+
client().prepareSearch(INDEX_NAME).setSize(0).setTrackTotalHits(true).setSize(expectedDocs),
135+
response -> {
136+
assertHitCount(response, expectedDocs);
137+
}
138+
);
137139

138140
// KNN query
139141
float[] queryVector = new float[dimensions];
140142
for (int i = 0; i < queryVector.length; i++) {
141143
queryVector[i] = randomFloatBetween(-1, 1, true);
142144
}
143145
KnnVectorQueryBuilder queryBuilder = new KnnVectorQueryBuilder(VECTOR_FIELD, queryVector, null, null, null, null);
144-
assertNoFailuresAndResponse(client().prepareSearch(INDEX_NAME).setQuery(queryBuilder).setTrackTotalHits(true).setSize(expectedDocs), response -> {
145-
assertHitCount(response, expectedDocs);
146-
});
146+
assertNoFailuresAndResponse(
147+
client().prepareSearch(INDEX_NAME).setQuery(queryBuilder).setTrackTotalHits(true).setSize(expectedDocs),
148+
response -> {
149+
assertHitCount(response, expectedDocs);
150+
}
151+
);
147152
}
148153

149154
private XContentBuilder updateMapping(int dimensions, String type) throws IOException {

0 commit comments

Comments
 (0)