Skip to content

Commit c3cfc7d

Browse files
authored
Merge branch 'main' into stats-fix-classCastException-planning
2 parents 7c99692 + de0e73a commit c3cfc7d

File tree

850 files changed

+31175
-8783
lines changed

Some content is hidden

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

850 files changed

+31175
-8783
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ steps:
1818
- rocky-9
1919
- rhel-8
2020
- rhel-9
21+
- rhel-10
2122
- almalinux-8
2223
- almalinux-9
2324
agents:

.buildkite/pipelines/periodic-packaging.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ steps:
1919
- rocky-9
2020
- rhel-8
2121
- rhel-9
22+
- rhel-10
2223
- almalinux-8
2324
- almalinux-9
2425
agents:

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ steps:
1818
- rocky-9
1919
- rhel-8
2020
- rhel-9
21+
- rhel-10
2122
- almalinux-8
2223
- almalinux-9
2324
agents:

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ steps:
2121
- rocky-9
2222
- rhel-8
2323
- rhel-9
24+
- rhel-10
2425
- almalinux-8
2526
- almalinux-9
2627
PACKAGING_TASK:

.buildkite/scripts/trigger-if-java-ea-new-build.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
RECENT_TIME_WINDOW=${RECENT_TIME_WINDOW:-24}
1414

1515
# Extract current JDK major version from bundled_jdk in version.properties
16-
CURRENT_JDK=$(grep "^bundled_jdk =" build-tools-internal/version.properties | cut -d'=' -f2 | tr -d ' ' | cut -d'+' -f1)
16+
CURRENT_JDK=$(grep "^bundled_jdk =" build-tools-internal/version.properties | cut -d'=' -f2 | tr -d ' ' | cut -d'+' -f1 | cut -d'.' -f1)
1717
TARGET_JDK=$((CURRENT_JDK + 1))
1818

1919
echo "Current JDK major version: $CURRENT_JDK"
@@ -51,10 +51,6 @@ echo "Latest JDK ${TARGET_JDK} build from ES archive:"
5151
echo " Timestamp: $TIMESTAMP"
5252
echo " JDK Identifier: $JDK_IDENTIFIER"
5353

54-
# Set variables for use in the pipeline trigger
55-
jdkbuild="$JDK_IDENTIFIER"
56-
jdk_timestamp="$TIMESTAMP"
57-
5854
# Check if timestamp is within last 24 hours
5955
CURRENT_TIME=$(date +%s)
6056
BUILD_TIME=$(date -d "$TIMESTAMP" +%s 2>/dev/null || date -j -f "%Y-%m-%dT%H:%M:%S" "${TIMESTAMP%Z}" +%s 2>/dev/null || echo "0")

benchmarks/src/main/java/org/elasticsearch/benchmark/_nightly/esql/ValuesSourceReaderBenchmark.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import org.apache.lucene.store.Directory;
2424
import org.apache.lucene.util.BytesRef;
2525
import org.apache.lucene.util.NumericUtils;
26+
import org.elasticsearch.cluster.metadata.IndexMetadata;
2627
import org.elasticsearch.common.breaker.NoopCircuitBreaker;
2728
import org.elasticsearch.common.logging.LogConfigurator;
2829
import org.elasticsearch.common.lucene.Lucene;
@@ -111,6 +112,15 @@ public class ValuesSourceReaderBenchmark {
111112
BigArrays.NON_RECYCLING_INSTANCE
112113
);
113114

115+
public static IndexSettings defaultIndexSettings() {
116+
IndexMetadata INDEX_METADATA = IndexMetadata.builder("index")
117+
.settings(Settings.builder().put(IndexMetadata.SETTING_VERSION_CREATED, IndexVersion.current()))
118+
.numberOfShards(1)
119+
.numberOfReplicas(0)
120+
.build();
121+
return new IndexSettings(INDEX_METADATA, Settings.EMPTY);
122+
}
123+
114124
static {
115125
// Smoke test all the expected values and force loading subclasses more like prod
116126
selfTest();
@@ -223,7 +233,7 @@ private static BlockLoader blockLoader(String name) {
223233
Lucene.KEYWORD_ANALYZER,
224234
Lucene.KEYWORD_ANALYZER,
225235
Lucene.KEYWORD_ANALYZER,
226-
new KeywordFieldMapper.Builder(name, IndexVersion.current()).docValues(ft.docValuesType() != DocValuesType.NONE),
236+
new KeywordFieldMapper.Builder(name, defaultIndexSettings()).docValues(ft.docValuesType() != DocValuesType.NONE),
227237
syntheticSource
228238
).blockLoader(new MappedFieldType.BlockLoaderContext() {
229239
@Override

build-tools-internal/version.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ elasticsearch = 9.3.0
22
lucene = 10.3.1
33

44
bundled_jdk_vendor = openjdk
5-
bundled_jdk = 25+36@bd75d5f9689641da8e1daabeccb5528b
5+
bundled_jdk = 25.0.1+8@2fbf10d8c78e40bd87641c434705079d
66
# optional dependencies
77
spatial4j = 0.7
88
jts = 1.15.0

distribution/docker/src/docker/dockerfiles/cloud_ess_fips/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# Extract Elasticsearch artifact
2626
################################################################################
2727
28-
FROM docker.elastic.co/wolfi/chainguard-base-fips:latest@sha256:7b18967a1329291d113228149b97382406f039171c6537b1afa4067701a6ba9e AS builder
28+
FROM docker.elastic.co/wolfi/chainguard-base-fips:latest@sha256:dea9b73186c5565a5bfa820a68f63ff497fdc9f06a0afc777159d819c5f01dc4 AS builder
2929
3030
# Install required packages to extract the Elasticsearch distribution
3131
RUN <%= retry.loop(package_manager, "export DEBIAN_FRONTEND=noninteractive && ${package_manager} update && ${package_manager} update && ${package_manager} add --no-cache curl") %>
@@ -104,7 +104,7 @@ WORKDIR /usr/share/elasticsearch/config
104104
# Add entrypoint
105105
################################################################################
106106

107-
FROM docker.elastic.co/wolfi/chainguard-base-fips:latest@sha256:7b18967a1329291d113228149b97382406f039171c6537b1afa4067701a6ba9e
107+
FROM docker.elastic.co/wolfi/chainguard-base-fips:latest@sha256:dea9b73186c5565a5bfa820a68f63ff497fdc9f06a0afc777159d819c5f01dc4
108108

109109
RUN <%= retry.loop(package_manager,
110110
"export DEBIAN_FRONTEND=noninteractive && \n" +

distribution/docker/src/docker/dockerfiles/wolfi/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# Extract Elasticsearch artifact
2626
################################################################################
2727
28-
FROM docker.elastic.co/wolfi/chainguard-base:latest@sha256:46fd486e4716d592aa1ad7dad15bb3e6d0aa5b08b2070e9daec9f6b8c8c990a6 AS builder
28+
FROM docker.elastic.co/wolfi/chainguard-base:latest@sha256:401d8684fd5932c178d7cf524cb05a5088d0e4f74e886e2d0a3b4b5127349a49 AS builder
2929
3030
# Install required packages to extract the Elasticsearch distribution
3131
RUN <%= retry.loop(package_manager, "export DEBIAN_FRONTEND=noninteractive && ${package_manager} update && ${package_manager} update && ${package_manager} add --no-cache curl") %>
@@ -80,7 +80,7 @@ RUN sed -i -e 's/ES_DISTRIBUTION_TYPE=tar/ES_DISTRIBUTION_TYPE=docker/' bin/elas
8080
# Add entrypoint
8181
################################################################################
8282

83-
FROM docker.elastic.co/wolfi/chainguard-base:latest@sha256:46fd486e4716d592aa1ad7dad15bb3e6d0aa5b08b2070e9daec9f6b8c8c990a6
83+
FROM docker.elastic.co/wolfi/chainguard-base:latest@sha256:401d8684fd5932c178d7cf524cb05a5088d0e4f74e886e2d0a3b4b5127349a49
8484

8585
RUN <%= retry.loop(package_manager,
8686
"export DEBIAN_FRONTEND=noninteractive && \n" +

docs/changelog/130857.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 130857
2+
summary: Improving statsByShard performance when the number of shards is very large
3+
area: Stats
4+
type: bug
5+
issues:
6+
- 97222

0 commit comments

Comments
 (0)