Skip to content

Commit cad6f1e

Browse files
Merge branch 'main' of github.com:elastic/elasticsearch into ml-eis-integration
2 parents 38a58f9 + f4dc716 commit cad6f1e

File tree

936 files changed

+26920
-11482
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

936 files changed

+26920
-11482
lines changed

.buildkite/pipelines/periodic-packaging.template.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,14 @@ steps:
77
matrix:
88
setup:
99
image:
10-
- debian-11
1110
- debian-12
1211
- opensuse-leap-15
13-
- oraclelinux-7
1412
- oraclelinux-8
15-
- sles-12
1613
- sles-15
17-
- ubuntu-1804
1814
- ubuntu-2004
1915
- ubuntu-2204
2016
- rocky-8
2117
- rocky-9
22-
- rhel-7
2318
- rhel-8
2419
- rhel-9
2520
- almalinux-8

.buildkite/pipelines/periodic-packaging.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,14 @@ steps:
88
matrix:
99
setup:
1010
image:
11-
- debian-11
1211
- debian-12
1312
- opensuse-leap-15
14-
- oraclelinux-7
1513
- oraclelinux-8
16-
- sles-12
1714
- sles-15
18-
- ubuntu-1804
1915
- ubuntu-2004
2016
- ubuntu-2204
2117
- rocky-8
2218
- rocky-9
23-
- rhel-7
2419
- rhel-8
2520
- rhel-9
2621
- almalinux-8

.buildkite/pipelines/periodic-platform-support.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,14 @@ steps:
77
matrix:
88
setup:
99
image:
10-
- debian-11
1110
- debian-12
1211
- opensuse-leap-15
13-
- oraclelinux-7
1412
- oraclelinux-8
15-
- sles-12
1613
- sles-15
17-
- ubuntu-1804
1814
- ubuntu-2004
1915
- ubuntu-2204
2016
- rocky-8
2117
- rocky-9
22-
- rhel-7
2318
- rhel-8
2419
- rhel-9
2520
- almalinux-8
@@ -90,7 +85,6 @@ steps:
9085
setup:
9186
image:
9287
- amazonlinux-2023
93-
- amazonlinux-2
9488
agents:
9589
provider: aws
9690
imagePrefix: elasticsearch-{{matrix.image}}

.buildkite/pipelines/pull-request/packaging-tests-unix.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,14 @@ steps:
1010
matrix:
1111
setup:
1212
image:
13-
- debian-11
1413
- debian-12
1514
- opensuse-leap-15
16-
- oraclelinux-7
1715
- oraclelinux-8
18-
- sles-12
1916
- sles-15
20-
- ubuntu-1804
2117
- ubuntu-2004
2218
- ubuntu-2204
2319
- rocky-8
2420
- rocky-9
25-
- rhel-7
2621
- rhel-8
2722
- rhel-9
2823
- almalinux-8

benchmarks/src/main/java/org/elasticsearch/benchmark/search/fetch/subphase/FetchSourcePhaseBenchmark.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public void setup() throws IOException {
6363
);
6464
includesSet = Set.of(fetchContext.includes());
6565
excludesSet = Set.of(fetchContext.excludes());
66-
parserConfig = XContentParserConfiguration.EMPTY.withFiltering(includesSet, excludesSet, false);
66+
parserConfig = XContentParserConfiguration.EMPTY.withFiltering(null, includesSet, excludesSet, false);
6767
}
6868

6969
private BytesReference read300BytesExample() throws IOException {

benchmarks/src/main/java/org/elasticsearch/benchmark/xcontent/FilterContentBenchmark.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ private XContentParserConfiguration buildParseConfig(boolean matchDotsInFieldNam
170170
includes = null;
171171
excludes = filters;
172172
}
173-
return XContentParserConfiguration.EMPTY.withFiltering(includes, excludes, matchDotsInFieldNames);
173+
return XContentParserConfiguration.EMPTY.withFiltering(null, includes, excludes, matchDotsInFieldNames);
174174
}
175175

176176
private BytesReference filter(XContentParserConfiguration contentParserConfiguration) throws IOException {

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/BwcVersions.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,20 @@ private List<Version> getReleased() {
252252
.toList();
253253
}
254254

255+
public List<Version> getReadOnlyIndexCompatible() {
256+
// Lucene can read indices in version N-2
257+
int compatibleMajor = currentVersion.getMajor() - 2;
258+
return versions.stream().filter(v -> v.getMajor() == compatibleMajor).sorted(Comparator.naturalOrder()).toList();
259+
}
260+
261+
public void withLatestReadOnlyIndexCompatible(Consumer<Version> versionAction) {
262+
var compatibleVersions = getReadOnlyIndexCompatible();
263+
if (compatibleVersions == null || compatibleVersions.isEmpty()) {
264+
throw new IllegalStateException("No read-only compatible version found.");
265+
}
266+
versionAction.accept(compatibleVersions.getLast());
267+
}
268+
255269
/**
256270
* Return versions of Elasticsearch which are index compatible with the current version.
257271
*/

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/DockerBase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
* This class models the different Docker base images that are used to build Docker distributions of Elasticsearch.
1414
*/
1515
public enum DockerBase {
16-
// "latest" here is intentional, since the image name specifies "8"
17-
DEFAULT("docker.elastic.co/ubi8/ubi-minimal:latest", "", "microdnf"),
16+
// "latest" here is intentional, since the image name specifies "9"
17+
DEFAULT("docker.elastic.co/ubi9/ubi-minimal:latest", "", "microdnf"),
1818

1919
// The Iron Bank base image is UBI (albeit hardened), but we are required to parameterize the Docker build
2020
IRON_BANK("${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}", "-ironbank", "yum"),

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/ElasticsearchTestBasePlugin.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import org.elasticsearch.gradle.test.GradleTestPolicySetupPlugin;
2121
import org.elasticsearch.gradle.test.SystemPropertyCommandLineArgumentProvider;
2222
import org.gradle.api.Action;
23+
import org.gradle.api.JavaVersion;
2324
import org.gradle.api.Plugin;
2425
import org.gradle.api.Project;
2526
import org.gradle.api.Task;
@@ -112,7 +113,6 @@ public void execute(Task t) {
112113
test.jvmArgs(
113114
"-Xmx" + System.getProperty("tests.heap.size", "512m"),
114115
"-Xms" + System.getProperty("tests.heap.size", "512m"),
115-
"-Djava.security.manager=allow",
116116
"-Dtests.testfeatures.enabled=true",
117117
"--add-opens=java.base/java.util=ALL-UNNAMED",
118118
// TODO: only open these for mockito when it is modularized
@@ -127,6 +127,13 @@ public void execute(Task t) {
127127
);
128128

129129
test.getJvmArgumentProviders().add(new SimpleCommandLineArgumentProvider("-XX:HeapDumpPath=" + heapdumpDir));
130+
test.getJvmArgumentProviders().add(() -> {
131+
if (test.getJavaVersion().compareTo(JavaVersion.VERSION_23) <= 0) {
132+
return List.of("-Djava.security.manager=allow");
133+
} else {
134+
return List.of();
135+
}
136+
});
130137

131138
String argline = System.getProperty("tests.jvm.argline");
132139
if (argline != null) {

build-tools-internal/version.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jna = 5.12.1
1717
netty = 4.1.115.Final
1818
commons_lang3 = 3.9
1919
google_oauth_client = 1.34.1
20+
awsv1sdk = 1.12.270
21+
awsv2sdk = 2.28.13
2022

2123
antlr4 = 4.13.1
2224
# bouncy castle version for non-fips. fips jars use a different version
@@ -33,7 +35,7 @@ commonscodec = 1.15
3335
protobuf = 3.25.5
3436

3537
# test dependencies
36-
randomizedrunner = 2.8.0
38+
randomizedrunner = 2.8.2
3739
junit = 4.13.2
3840
junit5 = 5.7.1
3941
hamcrest = 2.1

0 commit comments

Comments
 (0)