Skip to content

Commit dcd2c14

Browse files
Merge branch 'main' into pkar/resolve-index-force-reconn
2 parents 1d5ea93 + 495c375 commit dcd2c14

File tree

1,534 files changed

+11995
-3507
lines changed

Some content is hidden

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

1,534 files changed

+11995
-3507
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,19 @@ steps:
1212
- opensuse-leap-15
1313
- oraclelinux-8
1414
- oraclelinux-9
15+
- orcalelinux-10
1516
- sles-15
1617
- ubuntu-2204
1718
- ubuntu-2404
1819
- rocky-8
1920
- rocky-9
21+
- rocky-10
2022
- rhel-8
2123
- rhel-9
2224
- rhel-10
2325
- almalinux-8
2426
- almalinux-9
27+
- almalinux-10
2528
agents:
2629
provider: gcp
2730
image: family/elasticsearch-{{matrix.image}}

.buildkite/pipelines/periodic-packaging.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,19 @@ steps:
1313
- opensuse-leap-15
1414
- oraclelinux-8
1515
- oraclelinux-9
16+
- orcalelinux-10
1617
- sles-15
1718
- ubuntu-2204
1819
- ubuntu-2404
1920
- rocky-8
2021
- rocky-9
22+
- rocky-10
2123
- rhel-8
2224
- rhel-9
2325
- rhel-10
2426
- almalinux-8
2527
- almalinux-9
28+
- almalinux-10
2629
agents:
2730
provider: gcp
2831
image: family/elasticsearch-{{matrix.image}}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,19 @@ steps:
1414
- opensuse-leap-15
1515
- oraclelinux-8
1616
- oraclelinux-9
17+
- oraclelinux-10
1718
- sles-15
1819
- ubuntu-2204
1920
- ubuntu-2404
2021
- rocky-8
2122
- rocky-9
23+
- rocky-10
2224
- rhel-8
2325
- rhel-9
2426
- rhel-10
2527
- almalinux-8
2628
- almalinux-9
29+
- almalinux-10
2730
agents:
2831
provider: gcp
2932
image: family/elasticsearch-{{matrix.image}}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,19 @@ steps:
1515
- opensuse-leap-15
1616
- oraclelinux-8
1717
- oraclelinux-9
18+
- oraclelinux-10
1819
- sles-15
1920
- ubuntu-2204
2021
- ubuntu-2404
2122
- rocky-8
2223
- rocky-9
24+
- rocky-10
2325
- rhel-8
2426
- rhel-9
2527
- rhel-10
2628
- almalinux-8
2729
- almalinux-9
30+
- almalinux-10
2831
PACKAGING_TASK:
2932
- docker
3033
- docker-cloud-ess

.buildkite/scripts/gradle-build-cache-validation.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ tmpOutputFile=$(mktemp)
1212
trap "rm $tmpOutputFile" EXIT
1313

1414
set +e
15-
develocity-gradle-build-validation/03-validate-local-build-caching-different-locations.sh -r https://github.com/elastic/elasticsearch.git -b $BUILDKITE_BRANCH --develocity-server https://gradle-enterprise.elastic.co -t precommit --fail-if-not-fully-cacheable | tee $tmpOutputFile
15+
develocity-gradle-build-validation/03-validate-local-build-caching-different-locations.sh -r https://github.com/elastic/elasticsearch.git -b $BUILDKITE_BRANCH --develocity-server https://gradle-enterprise.elastic.co -t "precommit javadoc" --fail-if-not-fully-cacheable | tee $tmpOutputFile
1616
# Capture the return value
1717
retval=$?
1818
set -e

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ The repository is organized into several key directories:
9090
- Prefer Gradle tasks over ad-hoc scripts.
9191
- When scripting CLI sequences, leverage `gradlew` task.
9292
- Unrecognized changes: assume other agent; keep going; focus your changes. If it causes issues, stop + ask user.
93-
- Do not add "Co-Authored-By" lines to commit messages. commit messages should adhere to the 50/72 rule: use a maximum of 50 columns for the commit summary
93+
- Do not add "Co-Authored-By" or any AI attribution trailers to commit messages, by any means—including `--trailer`, `-m`, or any other git flag. commit messages should adhere to the 50/72 rule: use a maximum of 50 columns for the commit summary
9494

9595
## Backwards compatibility
9696
- For changes to a `Writeable` implementation (`writeTo` and constructor from `StreamInput`), add a new `public static final <UNIQUE_DESCRIPTIVE_NAME> = TransportVersion.fromName("<unique_descriptive_name>")` and use it in the new code paths. Confirm the backport branches and then generate a new version file with `./gradlew generateTransportVersion`.

benchmarks/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ dependencies {
4747
api(project(':x-pack:plugin:core'))
4848
api(project(':x-pack:plugin:esql'))
4949
api(project(':x-pack:plugin:esql:compute'))
50-
api(project(':x-pack:plugin:mapper-exponential-histogram'))
50+
api(project(':x-pack:plugin:analytics'))
5151
api(project(':x-pack:plugin:logsdb'))
5252
implementation project(path: ':libs:native')
5353
implementation project(path: ':libs:simdvec')

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import org.elasticsearch.common.logging.LogConfigurator;
2929
import org.elasticsearch.index.codec.Elasticsearch92Lucene103Codec;
3030
import org.elasticsearch.index.codec.tsdb.BinaryDVCompressionMode;
31-
import org.elasticsearch.index.codec.tsdb.es819.ES819TSDBDocValuesFormat;
31+
import org.elasticsearch.index.codec.tsdb.es819.ES819Version3TSDBDocValuesFormat;
3232
import org.openjdk.jmh.annotations.Benchmark;
3333
import org.openjdk.jmh.annotations.BenchmarkMode;
3434
import org.openjdk.jmh.annotations.Fork;
@@ -54,6 +54,8 @@
5454
import java.util.concurrent.TimeUnit;
5555
import java.util.function.Supplier;
5656

57+
import static org.elasticsearch.index.codec.tsdb.es819.ES819TSDBDocValuesFormat.NUMERIC_LARGE_BLOCK_SHIFT;
58+
5759
@BenchmarkMode(Mode.SingleShotTime)
5860
@OutputTimeUnit(TimeUnit.MILLISECONDS)
5961
@State(Scope.Benchmark)
@@ -258,12 +260,13 @@ private static IndexWriterConfig createIndexWriterConfig(boolean optimizedMergeE
258260
);
259261
config.setLeafSorter(DataStream.TIMESERIES_LEAF_READERS_SORTER);
260262
config.setMergePolicy(new LogByteSizeMergePolicy());
261-
var docValuesFormat = new ES819TSDBDocValuesFormat(
263+
var docValuesFormat = new ES819Version3TSDBDocValuesFormat(
262264
4096,
263265
512,
264266
optimizedMergeEnabled,
265267
BinaryDVCompressionMode.COMPRESSED_ZSTD_LEVEL_1,
266-
true
268+
true,
269+
NUMERIC_LARGE_BLOCK_SHIFT
267270
);
268271
config.setCodec(new Elasticsearch92Lucene103Codec() {
269272
@Override

benchmarks/src/main/java/org/elasticsearch/benchmark/index/mapper/DynamicMapperBenchmark.java

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
import org.elasticsearch.common.UUIDs;
1313
import org.elasticsearch.common.bytes.BytesArray;
14-
import org.elasticsearch.common.compress.CompressedXContent;
15-
import org.elasticsearch.common.xcontent.XContentHelper;
1614
import org.elasticsearch.index.mapper.DocumentMapper;
1715
import org.elasticsearch.index.mapper.LuceneDocument;
1816
import org.elasticsearch.index.mapper.MapperService;
@@ -185,21 +183,16 @@ public List<LuceneDocument> benchmarkDynamicallyCreatedFields() throws Exception
185183
MapperService mapperService = MapperServiceFactory.create("{}");
186184
for (int i = 0; i < 25; i++) {
187185
DocumentMapper documentMapper = mapperService.documentMapper();
188-
Mapping mapping = null;
189-
if (documentMapper == null) {
186+
boolean noMappings = documentMapper == null;
187+
if (noMappings) {
190188
documentMapper = DocumentMapper.createEmpty(mapperService);
191-
mapping = documentMapper.mapping();
192189
}
193190
ParsedDocument doc = documentMapper.parse(randomFrom(sources));
194-
if (mapping != null) {
195-
doc.addDynamicMappingsUpdate(mapping);
191+
if (noMappings) {
192+
doc.addDynamicMappingsUpdate(Mapping.emptyCompressed());
196193
}
197194
if (doc.dynamicMappingsUpdate() != null) {
198-
mapperService.merge(
199-
"_doc",
200-
new CompressedXContent(XContentHelper.toXContent(doc.dynamicMappingsUpdate(), XContentType.JSON, false)),
201-
MapperService.MergeReason.MAPPING_UPDATE
202-
);
195+
mapperService.merge("_doc", doc.dynamicMappingsUpdate(), MapperService.MergeReason.MAPPING_UPDATE);
203196
}
204197
}
205198
return mapperService.documentMapper().parse(randomFrom(sources)).docs();

benchmarks/src/main/java/org/elasticsearch/benchmark/vector/scorer/VectorScorerByteBenchmark.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import org.apache.lucene.util.hnsw.RandomVectorScorer;
2121
import org.apache.lucene.util.hnsw.UpdateableRandomVectorScorer;
2222
import org.elasticsearch.common.logging.LogConfigurator;
23+
import org.elasticsearch.common.logging.NodeNamePatternConverter;
2324
import org.elasticsearch.simdvec.VectorScorerFactory;
2425
import org.elasticsearch.simdvec.VectorSimilarityType;
2526
import org.openjdk.jmh.annotations.Benchmark;
@@ -62,6 +63,8 @@
6263
public class VectorScorerByteBenchmark {
6364

6465
static {
66+
NodeNamePatternConverter.setGlobalNodeName("benchmark");
67+
LogConfigurator.loadLog4jPlugins();
6568
LogConfigurator.configureESLogging(); // native access requires logging to be initialized
6669
if (supportsHeapSegments() == false) {
6770
final Logger LOG = LogManager.getLogger(VectorScorerByteBenchmark.class);

0 commit comments

Comments
 (0)