Skip to content

Commit d00fdf2

Browse files
author
elasticsearchmachine
committed
Merge remote-tracking branch 'origin/main' into lucene_snapshot
2 parents 669e006 + 4ee98e8 commit d00fdf2

File tree

283 files changed

+11607
-2792
lines changed

Some content is hidden

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

283 files changed

+11607
-2792
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,15 @@ if (providers.systemProperty('idea.active').getOrNull() == 'true') {
137137
}
138138
}
139139

140-
// modifies the idea module config to enable preview features on 'elasticsearch-native' module
140+
// modifies the idea module config to enable preview features on ':libs:native' module
141141
tasks.register("enablePreviewFeatures") {
142142
group = 'ide'
143143
description = 'Enables preview features on native library module'
144144
dependsOn tasks.named("enableExternalConfiguration")
145145

146146
doLast {
147147
['main', 'test'].each { sourceSet ->
148-
modifyXml(".idea/modules/libs/native/elasticsearch.libs.elasticsearch-native.${sourceSet}.iml") { xml ->
148+
modifyXml(".idea/modules/libs/native/elasticsearch.libs.${project.project(':libs:native').name}.${sourceSet}.iml") { xml ->
149149
xml.component.find { it.'@name' == 'NewModuleRootManager' }?.'@LANGUAGE_LEVEL' = 'JDK_21_PREVIEW'
150150
}
151151
}

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

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@
1212
import org.elasticsearch.gradle.VersionProperties;
1313
import org.gradle.api.DefaultTask;
1414
import org.gradle.api.artifacts.Configuration;
15+
import org.gradle.api.artifacts.FileCollectionDependency;
16+
import org.gradle.api.artifacts.component.ModuleComponentIdentifier;
1517
import org.gradle.api.file.FileCollection;
1618
import org.gradle.api.model.ObjectFactory;
19+
import org.gradle.api.provider.ProviderFactory;
1720
import org.gradle.api.tasks.InputFiles;
1821
import org.gradle.api.tasks.Internal;
1922
import org.gradle.api.tasks.TaskAction;
@@ -26,9 +29,6 @@
2629

2730
import javax.inject.Inject;
2831

29-
import static org.elasticsearch.gradle.DistributionDownloadPlugin.DISTRO_EXTRACTED_CONFIG_PREFIX;
30-
import static org.elasticsearch.gradle.internal.test.rest.compat.compat.LegacyYamlRestCompatTestPlugin.BWC_MINOR_CONFIG_NAME;
31-
3232
public abstract class ResolveAllDependencies extends DefaultTask {
3333

3434
private boolean resolveJavaToolChain = false;
@@ -37,18 +37,28 @@ public abstract class ResolveAllDependencies extends DefaultTask {
3737
protected abstract JavaToolchainService getJavaToolchainService();
3838

3939
private final ObjectFactory objectFactory;
40+
private final ProviderFactory providerFactory;
4041

4142
private Collection<Configuration> configs;
4243

4344
@Inject
44-
public ResolveAllDependencies(ObjectFactory objectFactory) {
45+
public ResolveAllDependencies(ObjectFactory objectFactory, ProviderFactory providerFactory) {
4546
this.objectFactory = objectFactory;
47+
this.providerFactory = providerFactory;
4648
}
4749

4850
@InputFiles
4951
public FileCollection getResolvedArtifacts() {
50-
return objectFactory.fileCollection()
51-
.from(configs.stream().filter(ResolveAllDependencies::canBeResolved).collect(Collectors.toList()));
52+
return objectFactory.fileCollection().from(configs.stream().filter(ResolveAllDependencies::canBeResolved).map(c -> {
53+
// Make a copy of the configuration, omitting file collection dependencies to avoid building project artifacts
54+
Configuration copy = c.copyRecursive(d -> d instanceof FileCollectionDependency == false);
55+
copy.setCanBeConsumed(false);
56+
return copy;
57+
})
58+
// Include only module dependencies, ignoring things like project dependencies so we don't unnecessarily build stuff
59+
.map(c -> c.getIncoming().artifactView(v -> v.lenient(true).componentFilter(i -> i instanceof ModuleComponentIdentifier)))
60+
.map(artifactView -> providerFactory.provider(artifactView::getFiles))
61+
.collect(Collectors.toList()));
5262
}
5363

5464
@TaskAction
@@ -95,8 +105,8 @@ private static boolean canBeResolved(Configuration configuration) {
95105
return false;
96106
}
97107
}
98-
return configuration.getName().startsWith(DISTRO_EXTRACTED_CONFIG_PREFIX) == false
99-
&& configuration.getName().equals(BWC_MINOR_CONFIG_NAME) == false;
108+
109+
return true;
100110
}
101111

102112
}

build-tools-internal/version.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ elasticsearch = 9.0.0
22
lucene = 10.0.1-snapshot-7a0365d4d39
33

44
bundled_jdk_vendor = openjdk
5-
bundled_jdk = 22.0.1+8@c7ec1332f7bb44aeba2eb341ae18aca4
5+
bundled_jdk = 23+37@3c5b90190c68498b986a97f276efd28a
66
# optional dependencies
77
spatial4j = 0.7
88
jts = 1.15.0

docs/changelog/114862.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 114862
2+
summary: "[Inference API] Add API to get configuration of inference services"
3+
area: Machine Learning
4+
type: enhancement
5+
issues: []

docs/changelog/115624.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
pr: 115624
2+
summary: "ES|QL: fix LIMIT pushdown past MV_EXPAND"
3+
area: ES|QL
4+
type: bug
5+
issues:
6+
- 102084
7+
- 102061

docs/changelog/115811.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 115811
2+
summary: "Prohibit changes to index mode, source, and sort settings during restore"
3+
area: Logs
4+
type: bug
5+
issues: []

docs/changelog/115812.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 115812
2+
summary: "Prohibit changes to index mode, source, and sort settings during resize"
3+
area: Logs
4+
type: bug
5+
issues: []

docs/changelog/115868.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 115868
2+
summary: Forward bedrock connection errors to user
3+
area: Machine Learning
4+
type: bug
5+
issues: []

docs/changelog/115923.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
pr: 115923
2+
summary: Apply more strict parsing of actions in bulk API
3+
area: Indices APIs
4+
type: breaking
5+
issues: [ ]
6+
breaking:
7+
title: Apply more strict parsing of actions in bulk API
8+
area: REST API
9+
details: >-
10+
Previously, the following classes of malformed input were deprecated but not rejected in the action lines of the a
11+
bulk request: missing closing brace; additional keys after the action (which were ignored); additional data after
12+
the closing brace (which was ignored). They will now be considered errors and rejected.
13+
impact: >-
14+
Users must provide well-formed input when using the bulk API. (They can request REST API compatibility with v8 to
15+
get the previous behaviour back as an interim measure.)
16+
notable: false

docs/changelog/115952.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 115952
2+
summary: "ESQL: Fix a bug in VALUES agg"
3+
area: ES|QL
4+
type: bug
5+
issues: []

0 commit comments

Comments
 (0)