Skip to content

Commit 6bc0f85

Browse files
author
elasticsearchmachine
committed
Merge remote-tracking branch 'origin/main' into lucene_snapshot
2 parents 8d24c29 + c4e964e commit 6bc0f85

File tree

99 files changed

+1059
-1874
lines changed

Some content is hidden

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

99 files changed

+1059
-1874
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ steps:
1414
- sles-15
1515
- ubuntu-2004
1616
- ubuntu-2204
17+
- ubuntu-2404
1718
- rocky-8
1819
- rocky-9
1920
- rhel-8

.buildkite/pipelines/periodic-packaging.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ steps:
1515
- sles-15
1616
- ubuntu-2004
1717
- ubuntu-2204
18+
- ubuntu-2404
1819
- rocky-8
1920
- rocky-9
2021
- rhel-8

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ steps:
1414
- sles-15
1515
- ubuntu-2004
1616
- ubuntu-2204
17+
- ubuntu-2404
1718
- rocky-8
1819
- rocky-9
1920
- rhel-8

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ steps:
1717
- sles-15
1818
- ubuntu-2004
1919
- ubuntu-2204
20+
- ubuntu-2404
2021
- rocky-8
2122
- rocky-9
2223
- rhel-8

.ci/scripts/run-gradle.sh

Lines changed: 30 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,39 @@ mkdir -p ~/.gradle/init.d && cp -v $WORKSPACE/.ci/init.gradle ~/.gradle/init.d
55

66
MAX_WORKERS=4
77

8-
# Don't run this stuff on Windows
9-
if ! uname -a | grep -q MING; then
10-
# drop page cache and kernel slab objects on linux
11-
[[ -x /usr/local/sbin/drop-caches ]] && sudo /usr/local/sbin/drop-caches
8+
if [ -z "$MAX_WORKER_ENV" ]; then
9+
# Don't run this stuff on Windows
10+
if ! uname -a | grep -q MING; then
11+
# drop page cache and kernel slab objects on linux
12+
[[ -x /usr/local/sbin/drop-caches ]] && sudo /usr/local/sbin/drop-caches
1213

13-
if [ "$(uname -m)" = "arm64" ] || [ "$(uname -m)" = "aarch64" ]; then
14-
MAX_WORKERS=16
15-
elif [ -f /proc/cpuinfo ]; then
16-
MAX_WORKERS=`grep '^cpu\scores' /proc/cpuinfo | uniq | sed 's/\s\+//g' | cut -d':' -f 2`
17-
else
18-
if [[ "$OSTYPE" == "darwin"* ]]; then
19-
MAX_WORKERS=`sysctl -n hw.physicalcpu | sed 's/\s\+//g'`
20-
else
21-
echo "Unsupported OS Type: $OSTYPE"
22-
exit 1
23-
fi
24-
fi
25-
if pwd | grep -v -q ^/dev/shm ; then
26-
echo "Not running on a ramdisk, reducing number of workers"
27-
MAX_WORKERS=$(($MAX_WORKERS*2/3))
28-
fi
14+
if [ "$(uname -m)" = "arm64" ] || [ "$(uname -m)" = "aarch64" ]; then
15+
MAX_WORKERS=16
16+
elif [ -f /proc/cpuinfo ]; then
17+
MAX_WORKERS=`grep '^cpu\scores' /proc/cpuinfo | uniq | sed 's/\s\+//g' | cut -d':' -f 2`
18+
else
19+
if [[ "$OSTYPE" == "darwin"* ]]; then
20+
MAX_WORKERS=`sysctl -n hw.physicalcpu | sed 's/\s\+//g'`
21+
else
22+
echo "Unsupported OS Type: $OSTYPE"
23+
exit 1
24+
fi
25+
fi
26+
if pwd | grep -v -q ^/dev/shm ; then
27+
echo "Not running on a ramdisk, reducing number of workers"
28+
MAX_WORKERS=$(($MAX_WORKERS*2/3))
29+
fi
2930

30-
# Export glibc version as environment variable since some BWC tests are incompatible with later versions
31-
export GLIBC_VERSION=$(ldd --version | grep '^ldd' | sed 's/.* \([1-9]\.[0-9]*\).*/\1/')
32-
fi
31+
# Export glibc version as environment variable since some BWC tests are incompatible with later versions
32+
export GLIBC_VERSION=$(ldd --version | grep '^ldd' | sed 's/.* \([1-9]\.[0-9]*\).*/\1/')
33+
fi
3334

34-
# Running on 2-core machines without ramdisk can make this value be 0
35-
if [[ "$MAX_WORKERS" == "0" ]]; then
36-
MAX_WORKERS=1
35+
# Running on 2-core machines without ramdisk can make this value be 0
36+
if [[ "$MAX_WORKERS" == "0" ]]; then
37+
MAX_WORKERS=1
38+
fi
39+
else
40+
MAX_WORKERS=$MAX_WORKER_ENV
3741
fi
3842

3943
set -e

muted-tests.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ tests:
7979
- class: org.elasticsearch.xpack.restart.MLModelDeploymentFullClusterRestartIT
8080
method: testDeploymentSurvivesRestart {cluster=UPGRADED}
8181
issue: https://github.com/elastic/elasticsearch/issues/115528
82-
- class: org.elasticsearch.action.update.UpdateResponseTests
83-
method: testToAndFromXContent
84-
issue: https://github.com/elastic/elasticsearch/issues/115689
8582
- class: org.elasticsearch.xpack.shutdown.NodeShutdownIT
8683
method: testStalledShardMigrationProperlyDetected
8784
issue: https://github.com/elastic/elasticsearch/issues/115697
@@ -305,8 +302,6 @@ tests:
305302
- class: org.elasticsearch.reservedstate.service.FileSettingsServiceTests
306303
method: testInvalidJSON
307304
issue: https://github.com/elastic/elasticsearch/issues/116521
308-
- class: org.elasticsearch.xpack.esql.optimizer.LogicalPlanOptimizerTests
309-
issue: https://github.com/elastic/elasticsearch/issues/118721
310305

311306
# Examples:
312307
#

server/src/main/java/org/elasticsearch/TransportVersions.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ static TransportVersion def(int id) {
5555
public static final TransportVersion V_7_3_0 = def(7_03_00_99);
5656
public static final TransportVersion V_7_4_0 = def(7_04_00_99);
5757
public static final TransportVersion V_7_6_0 = def(7_06_00_99);
58-
public static final TransportVersion V_7_7_0 = def(7_07_00_99);
5958
public static final TransportVersion V_7_8_0 = def(7_08_00_99);
6059
public static final TransportVersion V_7_8_1 = def(7_08_01_99);
6160
public static final TransportVersion V_7_9_0 = def(7_09_00_99);

server/src/main/java/org/elasticsearch/cluster/metadata/ComponentTemplateMetadata.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public String getWriteableName() {
8989

9090
@Override
9191
public TransportVersion getMinimalSupportedVersion() {
92-
return TransportVersions.V_7_7_0;
92+
return TransportVersions.ZERO;
9393
}
9494

9595
@Override
@@ -166,7 +166,7 @@ public String getWriteableName() {
166166

167167
@Override
168168
public TransportVersion getMinimalSupportedVersion() {
169-
return TransportVersions.V_7_7_0;
169+
return TransportVersions.ZERO;
170170
}
171171
}
172172
}

server/src/main/java/org/elasticsearch/cluster/metadata/ComposableIndexTemplateMetadata.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public String getWriteableName() {
9494

9595
@Override
9696
public TransportVersion getMinimalSupportedVersion() {
97-
return TransportVersions.V_7_7_0;
97+
return TransportVersions.ZERO;
9898
}
9999

100100
@Override
@@ -167,7 +167,7 @@ public String getWriteableName() {
167167

168168
@Override
169169
public TransportVersion getMinimalSupportedVersion() {
170-
return TransportVersions.V_7_7_0;
170+
return TransportVersions.ZERO;
171171
}
172172
}
173173
}

server/src/main/java/org/elasticsearch/cluster/metadata/DataStreamMetadata.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public String getWriteableName() {
217217

218218
@Override
219219
public TransportVersion getMinimalSupportedVersion() {
220-
return TransportVersions.V_7_7_0;
220+
return TransportVersions.ZERO;
221221
}
222222

223223
@Override
@@ -311,7 +311,7 @@ public String getWriteableName() {
311311

312312
@Override
313313
public TransportVersion getMinimalSupportedVersion() {
314-
return TransportVersions.V_7_7_0;
314+
return TransportVersions.ZERO;
315315
}
316316
}
317317
}

0 commit comments

Comments
 (0)