Skip to content

Commit 9abbc09

Browse files
Merge branch 'main' into feat/make-health-node-available-if-all-nodes-shutdown
2 parents dbf3e96 + 5153905 commit 9abbc09

File tree

10,547 files changed

+63880
-48342
lines changed

Some content is hidden

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

10,547 files changed

+63880
-48342
lines changed

.buildkite/pipelines/periodic.template.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ steps:
4646
matrix:
4747
setup:
4848
ES_RUNTIME_JAVA:
49-
- openjdk17
49+
- openjdk21
5050
GRADLE_TASK:
5151
- checkPart1
5252
- checkPart2
@@ -88,10 +88,7 @@ steps:
8888
matrix:
8989
setup:
9090
ES_RUNTIME_JAVA:
91-
- graalvm-ce17
92-
- openjdk17
9391
- openjdk21
94-
- openjdk22
9592
- openjdk23
9693
GRADLE_TASK:
9794
- checkPart1
@@ -115,10 +112,7 @@ steps:
115112
matrix:
116113
setup:
117114
ES_RUNTIME_JAVA:
118-
- graalvm-ce17
119-
- openjdk17
120115
- openjdk21
121-
- openjdk22
122116
- openjdk23
123117
BWC_VERSION: $BWC_LIST
124118
agents:

.buildkite/pipelines/periodic.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ steps:
407407
matrix:
408408
setup:
409409
ES_RUNTIME_JAVA:
410-
- openjdk17
410+
- openjdk21
411411
GRADLE_TASK:
412412
- checkPart1
413413
- checkPart2
@@ -449,10 +449,7 @@ steps:
449449
matrix:
450450
setup:
451451
ES_RUNTIME_JAVA:
452-
- graalvm-ce17
453-
- openjdk17
454452
- openjdk21
455-
- openjdk22
456453
- openjdk23
457454
GRADLE_TASK:
458455
- checkPart1
@@ -476,10 +473,7 @@ steps:
476473
matrix:
477474
setup:
478475
ES_RUNTIME_JAVA:
479-
- graalvm-ce17
480-
- openjdk17
481476
- openjdk21
482-
- openjdk22
483477
- openjdk23
484478
BWC_VERSION: ["8.15.2", "8.16.0", "9.0.0"]
485479
agents:

.buildkite/scripts/lucene-snapshot/update-branch.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,21 @@ if [[ "$BUILDKITE_BRANCH" != "lucene_snapshot"* ]]; then
77
exit 1
88
fi
99

10-
echo --- Updating "$BUILDKITE_BRANCH" branch with main
10+
if [[ "$BUILDKITE_BRANCH" == "lucene_snapshot_10" ]]; then
11+
UPSTREAM="main"
12+
elif [[ "$BUILDKITE_BRANCH" == "lucene_snapshot" ]]; then
13+
UPSTREAM="8.x"
14+
else
15+
echo "Error: unknown branch: $BUILDKITE_BRANCH"
16+
exit 1
17+
fi
18+
19+
echo --- Updating "$BUILDKITE_BRANCH" branch with "$UPSTREAM"
1120

1221
git config --global user.name elasticsearchmachine
1322
git config --global user.email '[email protected]'
1423

1524
git checkout "$BUILDKITE_BRANCH"
16-
git fetch origin main
17-
git merge --no-edit origin/main
25+
git fetch origin "$UPSTREAM"
26+
git merge --no-edit "origin/$UPSTREAM"
1827
git push origin "$BUILDKITE_BRANCH"

CONTRIBUTING.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -378,10 +378,11 @@ license header unless instructed otherwise:
378378

379379
/*
380380
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
381-
* or more contributor license agreements. Licensed under the Elastic License
382-
* 2.0 and the Server Side Public License, v 1; you may not use this file except
383-
* in compliance with, at your election, the Elastic License 2.0 or the Server
384-
* Side Public License, v 1.
381+
* or more contributor license agreements. Licensed under the "Elastic License
382+
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
383+
* Public License v 1"; you may not use this file except in compliance with, at
384+
* your election, the "Elastic License 2.0", the "GNU Affero General Public
385+
* License v3.0 only", or the "Server Side Public License, v 1".
385386
*/
386387

387388
The top-level `x-pack` directory contains code covered by the [Elastic

LICENSE.txt

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
Source code in this repository is covered by (i) a dual license under the Server
2-
Side Public License, v 1 and the Elastic License 2.0 or (ii) an Apache License
3-
2.0 compatible license or (iii) solely under the Elastic License 2.0, in each
4-
case, as noted in the applicable header. The default throughout the repository
5-
is a dual license under the Server Side Public License, v 1 and the Elastic
6-
License 2.0, unless the header specifies another license. Code that is licensed
7-
solely under the Elastic License 2.0 is found only in the x-pack folder.
1+
Source code in this repository is covered by (i) a triple license under the "GNU
2+
Affero General Public License v3.0 only", "the Server Side Public License, v 1",
3+
and the "Elastic License 2.0", or (ii) an "Apache License 2.0" compatible
4+
license or (iii) solely under the "Elastic License 2.0", in each case, as noted
5+
in the applicable header. The default throughout the repository is a triple
6+
license under the "GNU Affero General Public License v3.0 only", "the Server
7+
Side Public License, v 1", and the "Elastic License 2.0", unless the header
8+
specifies another license. Code that is licensed solely under the "Elastic
9+
License 2.0" is found only in the x-pack folder.

REST_API_COMPATIBILITY.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ For example:
166166
./gradlew :rest-api-spec:yamlRestCompatTest
167167
```
168168

169-
Since these are a variation of backward compatibility testing, the entire suite of compatibility tests will be skipped anytime the backward compatibility testing is disabled. Since the source code for these tests live in a branch of code, disabling a specific test should be done via the transformation task configuration in build.gradle (i.e. `yamlRestTestV7CompatTransform`).
169+
Since these are a variation of backward compatibility testing, the entire suite of compatibility tests will be skipped anytime the backward compatibility testing is disabled. Since the source code for these tests live in a branch of code, disabling a specific test should be done via the transformation task configuration in build.gradle (i.e. `yamlRestCompatTestTransform`).
170170

171-
In some cases the prior version of the YAML REST tests are not sufficient to fully test changes. This can happen when the prior version has insufficient test coverage. In those cases, you can simply add more testing to the prior version or you can add custom REST tests that will run along side of the other compatibility tests. These custom tests can be found in the `yamlRestTestV7` (where Vnumber follows the same conventions) sourceset and the test directory is versioned for example: `yamlRestTestV7/resources/rest-api-spec/test/v7compat`). Custom REST tests for compatibility will not be modified prior to execution, so the correct headers need to be manually added.
171+
In some cases the prior version of the YAML REST tests are not sufficient to fully test changes. This can happen when the prior version has insufficient test coverage. In those cases, you can simply add more testing to the prior version or you can add custom REST tests that will run along side of the other compatibility tests. These custom tests can be found in the `yamlRestCompatTest` sourceset. Custom REST tests for compatibility will not be modified prior to execution, so the correct headers need to be manually added.
172172

173173
### Developer's workflow
174174

@@ -182,7 +182,7 @@ Mixed clusters are not explicitly tested since the change should be applied at t
182182

183183
By far the most common reason that compatibility tests can seemingly randomly fail is that your main branch is out of date with the upstream main. For this reason, it always suggested to ensure that your PR branch is up to date.
184184

185-
Test failure reproduction lines should behave identical to the non-compatible variant. However, to assure you are referencing the correct line number when reading the test, be sure to look at the line number from the transformed test on disk. Generally the fully transformed tests can be found at `build/restResources/v7/yamlTests/transformed/rest-api-spec/test/*` (where v7 will change with different versions).
185+
Test failure reproduction lines should behave identical to the non-compatible variant. However, to assure you are referencing the correct line number when reading the test, be sure to look at the line number from the transformed test on disk. Generally the fully transformed tests can be found at `build/restResources/compat/yamlTests/transformed/rest-api-spec/test/*`.
186186

187187
Muting compatibility tests should be done via a test transform. A per test skip or a file match can be used to skip the tests.
188188

TESTING.asciidoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,15 @@ You can run a group of YAML test by using wildcards:
472472
--tests "org.elasticsearch.test.rest.ClientYamlTestSuiteIT.test {yaml=index/*/*}"
473473
---------------------------------------------------------------------------
474474

475+
or
476+
477+
---------------------------------------------------------------------------
478+
./gradlew :rest-api-spec:yamlRestTest \
479+
--tests org.elasticsearch.test.rest.ClientYamlTestSuiteIT -Dtests.method="test {yaml=cat.segments/10_basic/*}"
480+
---------------------------------------------------------------------------
481+
482+
The latter method is preferable when the YAML suite name contains `.` (period).
483+
475484
Note that if the selected test via the `--tests` filter is not a valid test, i.e., the YAML test
476485
runner is not able to parse and load it, you might get an error message indicating that the test
477486
was not found. In such cases, running the whole suite without using the `--tests` could show more

Vagrantfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
# This Vagrantfile exists to test packaging. Read more about its use in the
55
# vagrant section in TESTING.asciidoc.
66

7-
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
8-
# or more contributor license agreements. Licensed under the Elastic License
9-
# 2.0 and the Server Side Public License, v 1; you may not use this file except
10-
# in compliance with, at your election, the Elastic License 2.0 or the Server
11-
# Side Public License, v 1.
7+
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
8+
# or more contributor license agreements. Licensed under the "Elastic License
9+
# 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
10+
# Public License v 1"; you may not use this file except in compliance with, at
11+
# your election, the "Elastic License 2.0", the "GNU Affero General Public
12+
# License v3.0 only", or the "Server Side Public License, v 1".
1213

1314
define_opts = {
1415
autostart: false

benchmarks/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ import org.elasticsearch.gradle.internal.test.TestUtil
33

44
/*
55
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
6-
* or more contributor license agreements. Licensed under the Elastic License
7-
* 2.0 and the Server Side Public License, v 1; you may not use this file except
8-
* in compliance with, at your election, the Elastic License 2.0 or the Server
9-
* Side Public License, v 1.
6+
* or more contributor license agreements. Licensed under the "Elastic License
7+
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
8+
* Public License v 1"; you may not use this file except in compliance with, at
9+
* your election, the "Elastic License 2.0", the "GNU Affero General Public
10+
* License v3.0 only", or the "Server Side Public License, v 1".
1011
*/
1112

1213
apply plugin: org.elasticsearch.gradle.internal.ElasticsearchJavaBasePlugin

benchmarks/src/main/java/org/elasticsearch/benchmark/bytes/BytesArrayReadLongBenchmark.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
/*
22
* 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 and the Server Side Public License, v 1; you may not use this file except
5-
* in compliance with, at your election, the Elastic License 2.0 or the Server
6-
* Side Public License, v 1.
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".
78
*/
89
package org.elasticsearch.benchmark.bytes;
910

0 commit comments

Comments
 (0)