Skip to content

Commit 413ea50

Browse files
committed
Merge branch 'main' into apmdata-ignore_malformed-for-metrics
2 parents e35dece + 12ae9a5 commit 413ea50

File tree

2,138 files changed

+51638
-31976
lines changed

Some content is hidden

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

2,138 files changed

+51638
-31976
lines changed

.buildkite/packer_cache.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ for branch in "${branches[@]}"; do
2929
fi
3030

3131
export JAVA_HOME="$HOME/.java/$ES_BUILD_JAVA"
32-
"checkout/${branch}/gradlew" --project-dir "$CHECKOUT_DIR" --parallel -s resolveAllDependencies -Dorg.gradle.warning.mode=none -DisCI
32+
"checkout/${branch}/gradlew" --project-dir "$CHECKOUT_DIR" --parallel -s resolveAllDependencies -Dorg.gradle.warning.mode=none -DisCI --max-workers=4
33+
"checkout/${branch}/gradlew" --stop
34+
pkill -f '.*GradleDaemon.*'
3335
rm -rf "checkout/${branch}"
3436
done

.buildkite/pipelines/lucene-snapshot/run-tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ steps:
5656
matrix:
5757
setup:
5858
BWC_VERSION:
59-
- 7.17.13
6059
- 8.9.1
6160
- 8.10.0
6261
agents:

.buildkite/scripts/cloud-deploy.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
set -euo pipefail
44

5-
.ci/scripts/run-gradle.sh buildCloudDockerImage
5+
.ci/scripts/run-gradle.sh buildCloudEssDockerImage
66

77
ES_VERSION=$(grep 'elasticsearch' build-tools-internal/version.properties | awk '{print $3}')
8-
DOCKER_TAG="docker.elastic.co/elasticsearch-ci/elasticsearch-cloud:${ES_VERSION}-${BUILDKITE_COMMIT:0:7}"
9-
docker tag elasticsearch-cloud:test "$DOCKER_TAG"
8+
DOCKER_TAG="docker.elastic.co/elasticsearch-ci/elasticsearch-cloud-ess:${ES_VERSION}-${BUILDKITE_COMMIT:0:7}"
9+
docker tag elasticsearch-cloud-ess:test "$DOCKER_TAG"
1010

1111
echo "$DOCKER_REGISTRY_PASSWORD" | docker login -u "$DOCKER_REGISTRY_USERNAME" --password-stdin docker.elastic.co
1212
unset DOCKER_REGISTRY_USERNAME DOCKER_REGISTRY_PASSWORD

.github/CODEOWNERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ gradle @elastic/es-delivery
3939
build-conventions @elastic/es-delivery
4040
build-tools @elastic/es-delivery
4141
build-tools-internal @elastic/es-delivery
42-
*.gradle @elastic/es-delivery
4342
.buildkite @elastic/es-delivery
4443
.ci @elastic/es-delivery
4544
.idea @elastic/es-delivery

.github/workflows/sync-main-to-jdk-branch.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

README.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ Quickly set up Elasticsearch and Kibana in Docker for local development or testi
5656
- If you're using Microsoft Windows, then install https://learn.microsoft.com/en-us/windows/wsl/install[Windows Subsystem for Linux (WSL)].
5757

5858
==== Trial license
59+
This setup comes with a one-month trial license that includes all Elastic features.
5960

60-
This setup comes with a one-month trial of the Elastic *Platinum* license.
6161
After the trial period, the license reverts to *Free and open - Basic*.
6262
Refer to https://www.elastic.co/subscriptions[Elastic subscriptions] for more information.
6363

benchmarks/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ dependencies {
4040
// us to invoke the JMH uberjar as usual.
4141
exclude group: 'net.sf.jopt-simple', module: 'jopt-simple'
4242
}
43-
api(project(':libs:elasticsearch-h3'))
43+
api(project(':libs:h3'))
4444
api(project(':modules:aggregations'))
4545
api(project(':x-pack:plugin:esql-core'))
4646
api(project(':x-pack:plugin:esql'))
4747
api(project(':x-pack:plugin:esql:compute'))
48-
implementation project(path: ':libs:elasticsearch-simdvec')
48+
implementation project(path: ':libs:simdvec')
4949
expression(project(path: ':modules:lang-expression', configuration: 'zip'))
5050
painless(project(path: ':modules:lang-painless', configuration: 'zip'))
51-
nativeLib(project(':libs:elasticsearch-native'))
51+
nativeLib(project(':libs:native'))
5252
api "org.openjdk.jmh:jmh-core:$versions.jmh"
5353
annotationProcessor "org.openjdk.jmh:jmh-generator-annprocess:$versions.jmh"
5454
// Dependencies of JMH

benchmarks/src/main/java/org/elasticsearch/benchmark/vector/VectorScorerBenchmark.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import org.apache.lucene.store.MMapDirectory;
2020
import org.apache.lucene.util.hnsw.RandomVectorScorer;
2121
import org.apache.lucene.util.hnsw.RandomVectorScorerSupplier;
22-
import org.apache.lucene.util.quantization.RandomAccessQuantizedByteVectorValues;
22+
import org.apache.lucene.util.quantization.QuantizedByteVectorValues;
2323
import org.apache.lucene.util.quantization.ScalarQuantizer;
2424
import org.elasticsearch.common.logging.LogConfigurator;
2525
import org.elasticsearch.core.IOUtils;
@@ -217,19 +217,17 @@ public float squareDistanceScalar() {
217217
return 1 / (1f + adjustedDistance);
218218
}
219219

220-
RandomAccessQuantizedByteVectorValues vectorValues(int dims, int size, IndexInput in, VectorSimilarityFunction sim) throws IOException {
220+
QuantizedByteVectorValues vectorValues(int dims, int size, IndexInput in, VectorSimilarityFunction sim) throws IOException {
221221
var sq = new ScalarQuantizer(0.1f, 0.9f, (byte) 7);
222222
var slice = in.slice("values", 0, in.length());
223223
return new OffHeapQuantizedByteVectorValues.DenseOffHeapVectorValues(dims, size, sq, false, sim, null, slice);
224224
}
225225

226-
RandomVectorScorerSupplier luceneScoreSupplier(RandomAccessQuantizedByteVectorValues values, VectorSimilarityFunction sim)
227-
throws IOException {
226+
RandomVectorScorerSupplier luceneScoreSupplier(QuantizedByteVectorValues values, VectorSimilarityFunction sim) throws IOException {
228227
return new Lucene99ScalarQuantizedVectorScorer(null).getRandomVectorScorerSupplier(sim, values);
229228
}
230229

231-
RandomVectorScorer luceneScorer(RandomAccessQuantizedByteVectorValues values, VectorSimilarityFunction sim, float[] queryVec)
232-
throws IOException {
230+
RandomVectorScorer luceneScorer(QuantizedByteVectorValues values, VectorSimilarityFunction sim, float[] queryVec) throws IOException {
233231
return new Lucene99ScalarQuantizedVectorScorer(null).getRandomVectorScorer(sim, values, queryVec);
234232
}
235233

build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/PublishPluginFuncTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class PublishPluginFuncTest extends AbstractGradleFuncTest {
1818

1919
def setup() {
2020
// required for JarHell to work
21-
subProject(":libs:elasticsearch-core") << "apply plugin:'java'"
21+
subProject(":libs:core") << "apply plugin:'java'"
2222

2323
configurationCacheCompatible = false
2424
}

build-tools-internal/src/main/groovy/elasticsearch.ide.gradle

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,36 @@ if (providers.systemProperty('idea.active').getOrNull() == 'true') {
122122
.findAll { it != null }
123123
}
124124

125+
// force IntelliJ to generate *.iml files for each imported module
126+
tasks.register("enableExternalConfiguration") {
127+
group = 'ide'
128+
description = 'Enable per-module *.iml files'
129+
130+
doLast {
131+
modifyXml('.idea/misc.xml') {xml ->
132+
def externalStorageConfig = xml.component.find { it.'@name' == 'ExternalStorageConfigurationManager' }
133+
if (externalStorageConfig) {
134+
xml.remove(externalStorageConfig)
135+
}
136+
}
137+
}
138+
}
139+
140+
// modifies the idea module config to enable preview features on ':libs:native' module
141+
tasks.register("enablePreviewFeatures") {
142+
group = 'ide'
143+
description = 'Enables preview features on native library module'
144+
dependsOn tasks.named("enableExternalConfiguration")
145+
146+
doLast {
147+
['main', 'test'].each { sourceSet ->
148+
modifyXml(".idea/modules/libs/native/elasticsearch.libs.${project.project(':libs:native').name}.${sourceSet}.iml") { xml ->
149+
xml.component.find { it.'@name' == 'NewModuleRootManager' }?.'@LANGUAGE_LEVEL' = 'JDK_21_PREVIEW'
150+
}
151+
}
152+
}
153+
}
154+
125155
tasks.register('buildDependencyArtifacts') {
126156
group = 'ide'
127157
description = 'Builds artifacts needed as dependency for IDE modules'
@@ -131,7 +161,7 @@ if (providers.systemProperty('idea.active').getOrNull() == 'true') {
131161
':server:generateModulesList',
132162
':server:generatePluginsList',
133163
':generateProviderImpls',
134-
':libs:elasticsearch-native:elasticsearch-native-libraries:extractLibs',
164+
':libs:native:native-libraries:extractLibs',
135165
':x-pack:libs:es-opensaml-security-api:shadowJar'].collect { elasticsearchProject.right()?.task(it) ?: it })
136166
}
137167

@@ -149,7 +179,10 @@ if (providers.systemProperty('idea.active').getOrNull() == 'true') {
149179
testRunner = 'choose_per_test'
150180
}
151181
taskTriggers {
152-
afterSync tasks.named('configureIdeCheckstyle'), tasks.named('configureIdeaGradleJvm'), tasks.named('buildDependencyArtifacts')
182+
afterSync tasks.named('configureIdeCheckstyle'),
183+
tasks.named('configureIdeaGradleJvm'),
184+
tasks.named('buildDependencyArtifacts'),
185+
tasks.named('enablePreviewFeatures')
153186
}
154187
encodings {
155188
encoding = 'UTF-8'

0 commit comments

Comments
 (0)