Skip to content

Commit 3571c46

Browse files
committed
Merge remote-tracking branch 'upstream/main' into 05192025/UnpauseIndexingForPermits
Refresh
2 parents a1bf5a3 + 7b7d3f7 commit 3571c46

File tree

15 files changed

+562
-80
lines changed

15 files changed

+562
-80
lines changed

muted-tests.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -500,9 +500,6 @@ tests:
500500
- class: org.elasticsearch.test.rest.yaml.RcsCcsCommonYamlTestSuiteIT
501501
method: test {p0=search/600_flattened_ignore_above/flattened ignore_above multi-value field}
502502
issue: https://github.com/elastic/elasticsearch/issues/131967
503-
- class: org.elasticsearch.search.routing.SearchReplicaSelectionIT
504-
method: testNodeSelection
505-
issue: https://github.com/elastic/elasticsearch/issues/132017
506503
- class: org.elasticsearch.xpack.remotecluster.CrossClusterEsqlRCS1EnrichUnavailableRemotesIT
507504
method: testEsqlEnrichWithSkipUnavailable
508505
issue: https://github.com/elastic/elasticsearch/issues/132078
@@ -618,6 +615,7 @@ tests:
618615
method: "testDenseVectorMappingUpdate {initialType=int8_flat updateType=bbq_disk #2}"
619616
issue: https://github.com/elastic/elasticsearch/issues/132189
620617

618+
621619
# Examples:
622620
#
623621
# Mute a single test case in a YAML test suite:

qa/multi-data-path/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apply plugin: 'elasticsearch.internal-yaml-rest-test'
2+
3+
// This subproject verifies MDP continues to work with entitlements.
4+
5+
restResources {
6+
restApi {
7+
include '_common', 'capabilities', 'index', 'indices', 'indices.create'
8+
}
9+
}
10+
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the "Elastic License
4+
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
5+
* Public License v 1"; you may not use this file except in compliance with, at
6+
* your election, the "Elastic License 2.0", the "GNU Affero General Public
7+
* License v3.0 only", or the "Server Side Public License, v 1".
8+
*/
9+
10+
package org.elasticsearch.test.rest.yaml;
11+
12+
import com.carrotsearch.randomizedtesting.annotations.Name;
13+
import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;
14+
15+
import org.elasticsearch.test.cluster.ElasticsearchCluster;
16+
import org.junit.ClassRule;
17+
18+
import java.io.IOException;
19+
import java.nio.file.Files;
20+
21+
public class MDPYamlTestSuiteIT extends ESClientYamlSuiteTestCase {
22+
23+
@ClassRule
24+
public static ElasticsearchCluster cluster = ElasticsearchCluster.local().setting("path.shared_data", tempSharedDataPath()).build();
25+
26+
public MDPYamlTestSuiteIT(@Name("yaml") ClientYamlTestCandidate testCandidate) {
27+
super(testCandidate);
28+
}
29+
30+
@ParametersFactory
31+
public static Iterable<Object[]> parameters() throws Exception {
32+
return createParameters();
33+
}
34+
35+
@Override
36+
protected String getTestRestCluster() {
37+
return cluster.getHttpAddresses();
38+
}
39+
40+
private static String tempSharedDataPath() {
41+
try {
42+
return Files.createTempDirectory("shared_data").toString();
43+
} catch (IOException e) {
44+
throw new AssertionError(e);
45+
}
46+
}
47+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
"Index using shared data path":
3+
4+
- requires:
5+
test_runner_features: ["warnings"]
6+
7+
- do:
8+
warnings:
9+
- "[index.data_path] setting was deprecated in Elasticsearch and will be removed in a future release. See the deprecation documentation for the next major version."
10+
indices.create:
11+
index: test_index
12+
body:
13+
settings:
14+
data_path: "test_index_data_path"
15+
16+
- do:
17+
index:
18+
index: test_index
19+
id: "1"
20+
body: { foo: bar }
21+
22+
- match: { result: created }
23+
24+
- do:
25+
index:
26+
index: test_index
27+
id: "1"
28+
body: { foo: bar }
29+
op_type: index
30+
31+
- match: { result: updated }

qa/vector/src/main/java/org/elasticsearch/test/knn/KnnIndexTester.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private static String formatIndexPath(CmdLineArgs args) {
101101
static Codec createCodec(CmdLineArgs args) {
102102
final KnnVectorsFormat format;
103103
if (args.indexType() == IndexType.IVF) {
104-
format = new IVFVectorsFormat(args.ivfClusterSize());
104+
format = new IVFVectorsFormat(args.ivfClusterSize(), IVFVectorsFormat.DEFAULT_CENTROIDS_PER_PARENT_CLUSTER);
105105
} else {
106106
if (args.quantizeBits() == 1) {
107107
if (args.indexType() == IndexType.FLAT) {

0 commit comments

Comments
 (0)