Skip to content

Commit 9be0f2b

Browse files
author
elasticsearchmachine
committed
Merge remote-tracking branch 'origin/main' into lucene_snapshot
2 parents 0b59ded + 7c8aa09 commit 9be0f2b

File tree

218 files changed

+10016
-1606
lines changed

Some content is hidden

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

218 files changed

+10016
-1606
lines changed

.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/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/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: []

docs/changelog/136412.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 136412
2+
summary: Add cached tokens to Unified API response
3+
area: Machine Learning
4+
type: enhancement
5+
issues: []

docs/changelog/136818.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 136818
2+
summary: "ESQL: Fix lookup join filter pushdown to use semantic equality"
3+
area: ES|QL
4+
type: bug
5+
issues:
6+
- 136599

docs/changelog/136881.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 136881
2+
summary: Disallow `max_inner_product`, swap `dot_product` for `cosine` for int8_hnsw GPU type
3+
area: Search
4+
type: bug
5+
issues: []

docs/changelog/136961.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
pr: 136961
2+
summary: Fix `ignore_unmapped` setting when using `geo_shape` query with a pre-indexed
3+
shape
4+
area: Geo
5+
type: bug
6+
issues:
7+
- 136954

0 commit comments

Comments
 (0)