Skip to content

Commit e6016b1

Browse files
authored
Merge branch 'main' into inference_metadata_fields
2 parents 05458c6 + fe64ae0 commit e6016b1

File tree

288 files changed

+4925
-1261
lines changed

Some content is hidden

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

288 files changed

+4925
-1261
lines changed

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

Lines changed: 400 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ public class VectorScorerBenchmark {
8383

8484
RandomVectorScorer luceneDotScorerQuery;
8585
RandomVectorScorer nativeDotScorerQuery;
86+
RandomVectorScorer luceneSqrScorerQuery;
87+
RandomVectorScorer nativeSqrScorerQuery;
8688

8789
@Setup
8890
public void setup() throws IOException {
@@ -130,6 +132,8 @@ public void setup() throws IOException {
130132
}
131133
luceneDotScorerQuery = luceneScorer(values, VectorSimilarityFunction.DOT_PRODUCT, queryVec);
132134
nativeDotScorerQuery = factory.getInt7SQVectorScorer(VectorSimilarityFunction.DOT_PRODUCT, values, queryVec).get();
135+
luceneSqrScorerQuery = luceneScorer(values, VectorSimilarityFunction.EUCLIDEAN, queryVec);
136+
nativeSqrScorerQuery = factory.getInt7SQVectorScorer(VectorSimilarityFunction.EUCLIDEAN, values, queryVec).get();
133137

134138
// sanity
135139
var f1 = dotProductLucene();
@@ -157,6 +161,12 @@ public void setup() throws IOException {
157161
if (q1 != q2) {
158162
throw new AssertionError("query: lucene[" + q1 + "] != " + "native[" + q2 + "]");
159163
}
164+
165+
var sqr1 = squareDistanceLuceneQuery();
166+
var sqr2 = squareDistanceNativeQuery();
167+
if (sqr1 != sqr2) {
168+
throw new AssertionError("query: lucene[" + q1 + "] != " + "native[" + q2 + "]");
169+
}
160170
}
161171

162172
@TearDown
@@ -217,6 +227,16 @@ public float squareDistanceScalar() {
217227
return 1 / (1f + adjustedDistance);
218228
}
219229

230+
@Benchmark
231+
public float squareDistanceLuceneQuery() throws IOException {
232+
return luceneSqrScorerQuery.score(1);
233+
}
234+
235+
@Benchmark
236+
public float squareDistanceNativeQuery() throws IOException {
237+
return nativeSqrScorerQuery.score(1);
238+
}
239+
220240
QuantizedByteVectorValues vectorValues(int dims, int size, IndexInput in, VectorSimilarityFunction sim) throws IOException {
221241
var sq = new ScalarQuantizer(0.1f, 0.9f, (byte) 7);
222242
var slice = in.slice("values", 0, in.length());

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ develocity {
9898
link 'Source', "${prBaseUrl}/tree/${System.getenv('BUILDKITE_COMMIT')}"
9999
link 'Pull Request', "https://github.com/${repository}/pull/${prId}"
100100
} else {
101-
value 'Git Commit ID', gitRevision
102-
link 'Source', "https://github.com/${repository}/tree/${gitRevision}"
101+
value 'Git Commit ID', gitRevision.get()
102+
link 'Source', "https://github.com/${repository}/tree/${gitRevision.get()}"
103103
}
104104

105105
buildFinished { result ->

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ if (providers.systemProperty('idea.active').getOrNull() == 'true') {
166166
tasks.register('buildDependencyArtifacts') {
167167
group = 'ide'
168168
description = 'Builds artifacts needed as dependency for IDE modules'
169-
dependsOn([':plugins:repository-hdfs:hadoop-client-api:shadowJar',
169+
dependsOn([':plugins:repository-hdfs:hadoop-client-api:jar',
170170
':x-pack:plugin:esql:compute:ann:jar',
171171
':x-pack:plugin:esql:compute:gen:jar',
172172
':server:generateModulesList',

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/distribution/InternalElasticsearchDistributionTypes.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
import java.util.List;
1515

1616
public class InternalElasticsearchDistributionTypes {
17-
public static ElasticsearchDistributionType DEB = new DebElasticsearchDistributionType();
18-
public static ElasticsearchDistributionType RPM = new RpmElasticsearchDistributionType();
19-
public static ElasticsearchDistributionType DOCKER = new DockerElasticsearchDistributionType();
20-
public static ElasticsearchDistributionType DOCKER_IRONBANK = new DockerIronBankElasticsearchDistributionType();
21-
public static ElasticsearchDistributionType DOCKER_CLOUD_ESS = new DockerCloudEssElasticsearchDistributionType();
22-
public static ElasticsearchDistributionType DOCKER_WOLFI = new DockerWolfiElasticsearchDistributionType();
17+
public static final ElasticsearchDistributionType DEB = new DebElasticsearchDistributionType();
18+
public static final ElasticsearchDistributionType RPM = new RpmElasticsearchDistributionType();
19+
public static final ElasticsearchDistributionType DOCKER = new DockerElasticsearchDistributionType();
20+
public static final ElasticsearchDistributionType DOCKER_IRONBANK = new DockerIronBankElasticsearchDistributionType();
21+
public static final ElasticsearchDistributionType DOCKER_CLOUD_ESS = new DockerCloudEssElasticsearchDistributionType();
22+
public static final ElasticsearchDistributionType DOCKER_WOLFI = new DockerWolfiElasticsearchDistributionType();
2323

24-
public static List<ElasticsearchDistributionType> ALL_INTERNAL = List.of(
24+
public static final List<ElasticsearchDistributionType> ALL_INTERNAL = List.of(
2525
DEB,
2626
RPM,
2727
DOCKER,

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rerun/TestRerunTaskExtension.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class TestRerunTaskExtension {
3030
/**
3131
* The name of the extension added to each test task.
3232
*/
33-
public static String NAME = "rerun";
33+
public static final String NAME = "rerun";
3434

3535
private final Property<Integer> maxReruns;
3636

build-tools-internal/src/test/groovy/org/elasticsearch/gradle/internal/info/BuildParameterExtensionSpec.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
package org.elasticsearch.gradle.internal.info
1111

12+
import spock.lang.Ignore
1213
import spock.lang.Specification
1314

14-
import org.elasticsearch.gradle.internal.BwcVersions
1515
import org.gradle.api.JavaVersion
1616
import org.gradle.api.Project
1717
import org.gradle.api.provider.Provider
@@ -31,6 +31,7 @@ class BuildParameterExtensionSpec extends Specification {
3131

3232
ProjectBuilder projectBuilder = new ProjectBuilder()
3333

34+
@Ignore
3435
def "#getterName is cached anc concurrently accessible"() {
3536
given:
3637
def project = projectBuilder.build()

build-tools/src/main/java/org/elasticsearch/gradle/distribution/ElasticsearchDistributionTypes.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
import org.elasticsearch.gradle.ElasticsearchDistributionType;
1313

1414
public class ElasticsearchDistributionTypes {
15-
public static ElasticsearchDistributionType ARCHIVE = new ArchiveElasticsearchDistributionType();
16-
public static ElasticsearchDistributionType INTEG_TEST_ZIP = new IntegTestZipElasticsearchDistributionType();
15+
public static final ElasticsearchDistributionType ARCHIVE = new ArchiveElasticsearchDistributionType();
16+
public static final ElasticsearchDistributionType INTEG_TEST_ZIP = new IntegTestZipElasticsearchDistributionType();
1717
}

distribution/docker/src/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<% if (docker_base == 'iron_bank') { %>
2323
ARG BASE_REGISTRY=registry1.dso.mil
2424
ARG BASE_IMAGE=ironbank/redhat/ubi/ubi9
25-
ARG BASE_TAG=9.4
25+
ARG BASE_TAG=9.5
2626
<% } %>
2727
2828
################################################################################

docs/changelog/116868.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 116868
2+
summary: Run `TransportGetComponentTemplateAction` on local node
3+
area: Indices APIs
4+
type: enhancement
5+
issues: []

0 commit comments

Comments
 (0)