Skip to content

Commit ed01a9d

Browse files
committed
Merge branch 'main' into esql_date_range_data_type
2 parents 4e77c92 + 9435f41 commit ed01a9d

File tree

505 files changed

+16362
-2926
lines changed

Some content is hidden

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

505 files changed

+16362
-2926
lines changed

.buildkite/scripts/periodic.trigger.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,16 @@ IS_FIRST=true
1111
SKIP_DELAY="${SKIP_DELAY:-false}"
1212

1313
for BRANCH in "${BRANCHES[@]}"; do
14+
# Removing 7.17 periodic branch builds
15+
if [[ $BRANCH == "7.17" ]];
16+
then
17+
continue;
18+
fi
1419
INTAKE_PIPELINE_SLUG="elasticsearch-intake"
1520
BUILD_JSON=$(curl -sH "Authorization: Bearer ${BUILDKITE_API_TOKEN}" "https://api.buildkite.com/v2/organizations/elastic/pipelines/${INTAKE_PIPELINE_SLUG}/builds?branch=${BRANCH}&state=passed&per_page=1" | jq '.[0] | {commit: .commit, url: .web_url}')
1621
LAST_GOOD_COMMIT=$(echo "${BUILD_JSON}" | jq -r '.commit')
1722

23+
1824
# Put a delay between each branch's set of pipelines by prepending each non-first branch with a sleep
1925
# This is to smooth out the spike in agent requests
2026
if [[ "$IS_FIRST" != "true" && "$SKIP_DELAY" != "true" ]]; then

.swp

-12 KB
Binary file not shown.

benchmarks/src/main/java/org/elasticsearch/benchmark/exponentialhistogram/ExponentialHistogramMergeBench.java

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@
1212
import org.apache.lucene.util.BytesRef;
1313
import org.elasticsearch.common.io.stream.BytesStreamOutput;
1414
import org.elasticsearch.exponentialhistogram.BucketIterator;
15+
import org.elasticsearch.exponentialhistogram.CompressedExponentialHistogram;
1516
import org.elasticsearch.exponentialhistogram.ExponentialHistogram;
1617
import org.elasticsearch.exponentialhistogram.ExponentialHistogramCircuitBreaker;
1718
import org.elasticsearch.exponentialhistogram.ExponentialHistogramGenerator;
1819
import org.elasticsearch.exponentialhistogram.ExponentialHistogramMerger;
19-
import org.elasticsearch.xpack.analytics.mapper.IndexWithCount;
20-
import org.elasticsearch.xpack.exponentialhistogram.CompressedExponentialHistogram;
2120
import org.openjdk.jmh.annotations.Benchmark;
2221
import org.openjdk.jmh.annotations.BenchmarkMode;
2322
import org.openjdk.jmh.annotations.Fork;
@@ -32,7 +31,6 @@
3231
import org.openjdk.jmh.annotations.Warmup;
3332

3433
import java.io.IOException;
35-
import java.util.ArrayList;
3634
import java.util.List;
3735
import java.util.Random;
3836
import java.util.concurrent.ThreadLocalRandom;
@@ -109,28 +107,24 @@ public void setUp() {
109107
}
110108

111109
private ExponentialHistogram asCompressedHistogram(ExponentialHistogram histogram) {
112-
List<IndexWithCount> negativeBuckets = new ArrayList<>();
113-
List<IndexWithCount> positiveBuckets = new ArrayList<>();
114-
115-
BucketIterator it = histogram.negativeBuckets().iterator();
116-
while (it.hasNext()) {
117-
negativeBuckets.add(new IndexWithCount(it.peekIndex(), it.peekCount()));
118-
it.advance();
119-
}
120-
it = histogram.positiveBuckets().iterator();
121-
while (it.hasNext()) {
122-
positiveBuckets.add(new IndexWithCount(it.peekIndex(), it.peekCount()));
123-
it.advance();
124-
}
125-
126-
long totalCount = histogram.zeroBucket().count() + histogram.negativeBuckets().valueCount() + histogram.positiveBuckets()
127-
.valueCount();
128110
BytesStreamOutput histoBytes = new BytesStreamOutput();
129111
try {
130-
CompressedExponentialHistogram.writeHistogramBytes(histoBytes, histogram.scale(), negativeBuckets, positiveBuckets);
112+
CompressedExponentialHistogram.writeHistogramBytes(
113+
histoBytes,
114+
histogram.scale(),
115+
histogram.negativeBuckets().iterator(),
116+
histogram.positiveBuckets().iterator()
117+
);
131118
CompressedExponentialHistogram result = new CompressedExponentialHistogram();
132119
BytesRef data = histoBytes.bytes().toBytesRef();
133-
result.reset(histogram.zeroBucket().zeroThreshold(), totalCount, histogram.sum(), histogram.min(), histogram.max(), data);
120+
result.reset(
121+
histogram.zeroBucket().zeroThreshold(),
122+
histogram.valueCount(),
123+
histogram.sum(),
124+
histogram.min(),
125+
histogram.max(),
126+
data
127+
);
134128
return result;
135129
} catch (IOException e) {
136130
throw new RuntimeException(e);

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:2229af4333f2ba23bdcb3b8bcd96903fb568da636519de774ee4b1fe21ea5912 AS builder
28+
FROM docker.elastic.co/wolfi/chainguard-base-fips:latest@sha256:cbdc968f357706186e2b83ea1fea92382f5d51842e867a662541b67c28f4e809 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:2229af4333f2ba23bdcb3b8bcd96903fb568da636519de774ee4b1fe21ea5912
107+
FROM docker.elastic.co/wolfi/chainguard-base-fips:latest@sha256:cbdc968f357706186e2b83ea1fea92382f5d51842e867a662541b67c28f4e809
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:e7cba125e50439f1bfd52d327dfbf10994ad8c2556265b30055d7af58c1aa600 AS builder
28+
FROM docker.elastic.co/wolfi/chainguard-base:latest@sha256:b85d54c9019ff80e88aab7d357ede3341d1442ce190173eed42ae5a116753e4e 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:e7cba125e50439f1bfd52d327dfbf10994ad8c2556265b30055d7af58c1aa600
83+
FROM docker.elastic.co/wolfi/chainguard-base:latest@sha256:b85d54c9019ff80e88aab7d357ede3341d1442ce190173eed42ae5a116753e4e
8484

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

distribution/tools/plugin-cli/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ dependencies {
2626
implementation project(":libs:plugin-scanner")
2727
implementation project(":libs:entitlement")
2828
// TODO: asm is picked up from the plugin scanner and entitlements, we should consolidate so it is not defined twice
29-
implementation 'org.ow2.asm:asm:9.8'
30-
implementation 'org.ow2.asm:asm-tree:9.8'
29+
implementation 'org.ow2.asm:asm:9.9'
30+
implementation 'org.ow2.asm:asm-tree:9.9'
3131

3232
api "org.bouncycastle:bcpg-fips:1.0.7.1"
3333
api "org.bouncycastle:bc-fips:1.0.2.6"

docs/changelog/132455.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
pr: 132455
2+
summary: "Make equals include ids for Alias, `TypedAttribute`"
3+
area: ES|QL
4+
type: bug
5+
issues:
6+
- 131509
7+
- 132634

docs/changelog/136133.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 136133
2+
summary: Implement `network_direction` function
3+
area: ES|QL
4+
type: enhancement
5+
issues: []

docs/changelog/136147.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 136147
2+
summary: Fixed geo point block loader slowness
3+
area: Mapping
4+
type: bug
5+
issues: []

docs/changelog/136386.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 136386
2+
summary: Limit concurrent TLS handshakes
3+
area: Network
4+
type: enhancement
5+
issues: []

0 commit comments

Comments
 (0)