Skip to content

Commit c1ac743

Browse files
Merge branch 'main' into ia-bedrock-completions
2 parents 37c70a3 + a434650 commit c1ac743

File tree

345 files changed

+14526
-6051
lines changed

Some content is hidden

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

345 files changed

+14526
-6051
lines changed

.buildkite/pipelines/intake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ steps:
6565
timeout_in_minutes: 300
6666
matrix:
6767
setup:
68-
BWC_VERSION: ["8.19.11", "9.1.10", "9.2.5", "9.3.0", "9.4.0"]
68+
BWC_VERSION: ["8.19.11", "9.1.11", "9.2.5", "9.3.0", "9.4.0"]
6969
agents:
7070
provider: gcp
7171
image: family/elasticsearch-ubuntu-2404

.buildkite/pipelines/periodic-java-ea.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,8 @@ steps:
404404
- signal_reason: agent_stop
405405
limit: 3
406406

407-
- label: 9.1.10 / bwc
408-
command: .ci/scripts/run-gradle.sh -Druntime.java=$$JAVA_EA_VERSION -Dbwc.checkout.align=true v9.1.10#bwcTest
407+
- label: 9.1.11 / bwc
408+
command: .ci/scripts/run-gradle.sh -Druntime.java=$$JAVA_EA_VERSION -Dbwc.checkout.align=true v9.1.11#bwcTest
409409
timeout_in_minutes: 300
410410
agents:
411411
provider: gcp
@@ -414,7 +414,7 @@ steps:
414414
buildDirectory: /dev/shm/bk
415415
preemptible: true
416416
env:
417-
BWC_VERSION: 9.1.10
417+
BWC_VERSION: 9.1.11
418418
retry:
419419
automatic:
420420
- exit_status: "-1"
@@ -557,7 +557,7 @@ steps:
557557
timeout_in_minutes: 300
558558
matrix:
559559
setup:
560-
BWC_VERSION: ["8.19.11", "9.1.10", "9.2.5", "9.3.0", "9.4.0"]
560+
BWC_VERSION: ["8.19.11", "9.1.11", "9.2.5", "9.3.0", "9.4.0"]
561561
agents:
562562
provider: gcp
563563
image: family/elasticsearch-ubuntu-2404

.buildkite/pipelines/periodic-packaging.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,8 @@ steps:
368368
env:
369369
BWC_VERSION: 9.0.8
370370

371-
- label: "{{matrix.image}} / 9.1.10 / packaging-tests-upgrade"
372-
command: ./.ci/scripts/packaging-test.sh -Dbwc.checkout.align=true destructiveDistroUpgradeTest.v9.1.10
371+
- label: "{{matrix.image}} / 9.1.11 / packaging-tests-upgrade"
372+
command: ./.ci/scripts/packaging-test.sh -Dbwc.checkout.align=true destructiveDistroUpgradeTest.v9.1.11
373373
timeout_in_minutes: 300
374374
matrix:
375375
setup:
@@ -382,7 +382,7 @@ steps:
382382
machineType: custom-16-32768
383383
buildDirectory: /dev/shm/bk
384384
env:
385-
BWC_VERSION: 9.1.10
385+
BWC_VERSION: 9.1.11
386386

387387
- label: "{{matrix.image}} / 9.2.5 / packaging-tests-upgrade"
388388
command: ./.ci/scripts/packaging-test.sh -Dbwc.checkout.align=true destructiveDistroUpgradeTest.v9.2.5

.buildkite/pipelines/periodic.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,8 @@ steps:
457457
- exit_status: "1"
458458
limit: 1
459459

460-
- label: 9.1.10 / bwc
461-
command: .ci/scripts/run-gradle.sh --continue -Dbwc.checkout.align=true v9.1.10#bwcTest
460+
- label: 9.1.11 / bwc
461+
command: .ci/scripts/run-gradle.sh --continue -Dbwc.checkout.align=true v9.1.11#bwcTest
462462
timeout_in_minutes: 300
463463
agents:
464464
provider: gcp
@@ -467,7 +467,7 @@ steps:
467467
buildDirectory: /dev/shm/bk
468468
preemptible: true
469469
env:
470-
BWC_VERSION: 9.1.10
470+
BWC_VERSION: 9.1.11
471471
retry:
472472
automatic:
473473
- exit_status: "-1"
@@ -625,7 +625,7 @@ steps:
625625
setup:
626626
ES_RUNTIME_JAVA:
627627
- openjdk21
628-
BWC_VERSION: ["8.19.11", "9.1.10", "9.2.5", "9.3.0", "9.4.0"]
628+
BWC_VERSION: ["8.19.11", "9.1.11", "9.2.5", "9.3.0", "9.4.0"]
629629
agents:
630630
provider: gcp
631631
image: family/elasticsearch-ubuntu-2404
@@ -692,7 +692,7 @@ steps:
692692
setup:
693693
ES_RUNTIME_JAVA:
694694
- openjdk21
695-
BWC_VERSION: ["8.19.11", "9.1.10", "9.2.5", "9.3.0", "9.4.0"]
695+
BWC_VERSION: ["8.19.11", "9.1.11", "9.2.5", "9.3.0", "9.4.0"]
696696
agents:
697697
provider: gcp
698698
image: family/elasticsearch-ubuntu-2404
@@ -749,7 +749,7 @@ steps:
749749
ES_RUNTIME_JAVA:
750750
- openjdk21
751751
- openjdk25
752-
BWC_VERSION: ["8.19.11", "9.1.10", "9.2.5", "9.3.0", "9.4.0"]
752+
BWC_VERSION: ["8.19.11", "9.1.11", "9.2.5", "9.3.0", "9.4.0"]
753753
agents:
754754
provider: gcp
755755
image: family/elasticsearch-ubuntu-2404

.ci/bwcVersions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ BWC_VERSION:
2020
- "8.18.8"
2121
- "8.19.11"
2222
- "9.0.8"
23-
- "9.1.10"
23+
- "9.1.11"
2424
- "9.2.5"
2525
- "9.3.0"
2626
- "9.4.0"

.ci/snapshotBwcVersions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BWC_VERSION:
22
- "8.19.11"
3-
- "9.1.10"
3+
- "9.1.11"
44
- "9.2.5"
55
- "9.3.0"
66
- "9.4.0"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
config:
22
- path: distribution/docker/src/docker/iron_bank
3-
dockerfile: ../Dockerfile
3+
dockerfile: ../dockerfiles/ironbank/Dockerfile

benchmarks/src/main/java/org/elasticsearch/benchmark/index/codec/tsdb/DecodeConstantIntegerBenchmark.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
@State(Scope.Benchmark)
4242
public class DecodeConstantIntegerBenchmark {
4343
private static final int SEED = 17;
44-
private static final int BLOCK_SIZE = 128;
4544

4645
@Param({ "1", "4", "8", "9", "16", "17", "24", "25", "32", "33", "40", "48", "56", "57", "64" })
4746
private int bitsPerValue;
@@ -59,12 +58,12 @@ public void setupInvocation() throws IOException {
5958

6059
@Setup(Level.Trial)
6160
public void setupTrial() throws IOException {
62-
decode.setupTrial(new ConstantIntegerSupplier(SEED, bitsPerValue, BLOCK_SIZE));
61+
decode.setupTrial(new ConstantIntegerSupplier(SEED, bitsPerValue, decode.getBlockSize()));
6362
}
6463

6564
@Benchmark
6665
public void throughput(Blackhole bh, ThroughputMetrics metrics) throws IOException {
6766
decode.benchmark(bh);
68-
metrics.recordOperation(BLOCK_SIZE, decode.getEncodedSize());
67+
metrics.recordOperation(decode.getBlockSize(), decode.getEncodedSize());
6968
}
7069
}
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
/*
2+
* 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", 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".
8+
*/
9+
10+
package org.elasticsearch.benchmark.index.codec.tsdb;
11+
12+
import org.elasticsearch.benchmark.index.codec.tsdb.internal.AbstractTSDBCodecBenchmark;
13+
import org.elasticsearch.benchmark.index.codec.tsdb.internal.CounterWithResetsSupplier;
14+
import org.elasticsearch.benchmark.index.codec.tsdb.internal.DecodeBenchmark;
15+
import org.elasticsearch.benchmark.index.codec.tsdb.internal.ThroughputMetrics;
16+
import org.openjdk.jmh.annotations.Benchmark;
17+
import org.openjdk.jmh.annotations.BenchmarkMode;
18+
import org.openjdk.jmh.annotations.Fork;
19+
import org.openjdk.jmh.annotations.Level;
20+
import org.openjdk.jmh.annotations.Measurement;
21+
import org.openjdk.jmh.annotations.Mode;
22+
import org.openjdk.jmh.annotations.OutputTimeUnit;
23+
import org.openjdk.jmh.annotations.Param;
24+
import org.openjdk.jmh.annotations.Scope;
25+
import org.openjdk.jmh.annotations.Setup;
26+
import org.openjdk.jmh.annotations.State;
27+
import org.openjdk.jmh.annotations.Warmup;
28+
import org.openjdk.jmh.infra.Blackhole;
29+
30+
import java.io.IOException;
31+
import java.util.concurrent.TimeUnit;
32+
33+
/**
34+
* Benchmark for decoding counter-with-resets data patterns.
35+
*
36+
* <p>Parameterized by resetProbability to test how reset frequency affects
37+
* decoding performance. Lower probability means longer monotonic runs between
38+
* resets, while higher probability creates more frequent jumps back to zero.
39+
*/
40+
@Fork(value = 1)
41+
@Warmup(iterations = 3)
42+
@Measurement(iterations = 5)
43+
@BenchmarkMode(Mode.Throughput)
44+
@OutputTimeUnit(TimeUnit.SECONDS)
45+
@State(Scope.Benchmark)
46+
public class DecodeCounterWithResetsBenchmark {
47+
private static final int SEED = 17;
48+
49+
@Param({ "0.01", "0.02", "0.05" })
50+
private double resetProbability;
51+
52+
private final AbstractTSDBCodecBenchmark decode;
53+
54+
public DecodeCounterWithResetsBenchmark() {
55+
this.decode = new DecodeBenchmark();
56+
}
57+
58+
@Setup(Level.Invocation)
59+
public void setupInvocation() throws IOException {
60+
decode.setupInvocation();
61+
}
62+
63+
@Setup(Level.Trial)
64+
public void setupTrial() throws IOException {
65+
decode.setupTrial(CounterWithResetsSupplier.builder(SEED, decode.getBlockSize()).withResetProbability(resetProbability).build());
66+
}
67+
68+
@Benchmark
69+
public void throughput(Blackhole bh, ThroughputMetrics metrics) throws IOException {
70+
decode.benchmark(bh);
71+
metrics.recordOperation(decode.getBlockSize(), decode.getEncodedSize());
72+
}
73+
}

benchmarks/src/main/java/org/elasticsearch/benchmark/index/codec/tsdb/DecodeDecreasingIntegerBenchmark.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
@State(Scope.Benchmark)
4242
public class DecodeDecreasingIntegerBenchmark {
4343
private static final int SEED = 17;
44-
private static final int BLOCK_SIZE = 128;
4544

4645
@Param({ "1", "4", "8", "9", "16", "17", "24", "25", "32", "33", "40", "48", "56", "57", "64" })
4746
private int bitsPerValue;
@@ -59,12 +58,12 @@ public void setupInvocation() throws IOException {
5958

6059
@Setup(Level.Trial)
6160
public void setupTrial() throws IOException {
62-
decode.setupTrial(new DecreasingIntegerSupplier(SEED, bitsPerValue, BLOCK_SIZE));
61+
decode.setupTrial(new DecreasingIntegerSupplier(SEED, bitsPerValue, decode.getBlockSize()));
6362
}
6463

6564
@Benchmark
6665
public void throughput(Blackhole bh, ThroughputMetrics metrics) throws IOException {
6766
decode.benchmark(bh);
68-
metrics.recordOperation(BLOCK_SIZE, decode.getEncodedSize());
67+
metrics.recordOperation(decode.getBlockSize(), decode.getEncodedSize());
6968
}
7069
}

0 commit comments

Comments
 (0)