Skip to content

Commit 17979d5

Browse files
committed
Merge branch 'main' into non-issue/rescore-vector-use-size-as-k
2 parents dcbe0bf + 06470b1 commit 17979d5

File tree

394 files changed

+9593
-10593
lines changed

Some content is hidden

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

394 files changed

+9593
-10593
lines changed

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

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

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import org.gradle.api.artifacts.Configuration;
3232
import org.gradle.api.artifacts.dsl.DependencyHandler;
3333
import org.gradle.api.artifacts.type.ArtifactTypeDefinition;
34+
import org.gradle.api.file.FileCollection;
3435
import org.gradle.api.plugins.JavaPluginExtension;
3536
import org.gradle.api.provider.Provider;
3637
import org.gradle.api.specs.Specs;
@@ -88,8 +89,8 @@ public void apply(Project project) {
8889
Map<String, TaskProvider<?>> versionTasks = versionTasks(project, "destructiveDistroUpgradeTest", buildParams.getBwcVersions());
8990
TaskProvider<Task> destructiveDistroTest = project.getTasks().register("destructiveDistroTest");
9091

91-
Configuration examplePlugin = configureExamplePlugin(project);
92-
92+
Configuration examplePluginConfiguration = configureExamplePlugin(project);
93+
FileCollection examplePluginFileCollection = examplePluginConfiguration;
9394
List<TaskProvider<Test>> windowsTestTasks = new ArrayList<>();
9495
Map<ElasticsearchDistributionType, List<TaskProvider<Test>>> linuxTestTasks = new HashMap<>();
9596

@@ -102,9 +103,9 @@ public void apply(Project project) {
102103
t2 -> distribution.isDocker() == false || dockerSupport.get().getDockerAvailability().isAvailable()
103104
);
104105
addDistributionSysprop(t, DISTRIBUTION_SYSPROP, distribution::getFilepath);
105-
addDistributionSysprop(t, EXAMPLE_PLUGIN_SYSPROP, () -> examplePlugin.getSingleFile().toString());
106+
addDistributionSysprop(t, EXAMPLE_PLUGIN_SYSPROP, () -> examplePluginFileCollection.getSingleFile().toString());
106107
t.exclude("**/PackageUpgradeTests.class");
107-
}, distribution, examplePlugin.getDependencies());
108+
}, distribution, examplePluginConfiguration.getDependencies());
108109

109110
if (distribution.getPlatform() == Platform.WINDOWS) {
110111
windowsTestTasks.add(destructiveTask);

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ tasks.register("verifyBwcTestsEnabled") {
365365

366366
tasks.register("branchConsistency") {
367367
description = 'Ensures this branch is internally consistent. For example, that versions constants match released versions.'
368-
group 'Verification'
368+
group = 'Verification'
369369
dependsOn ":verifyVersions", ":verifyBwcTestsEnabled"
370370
}
371371

distribution/docker/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ if (useDra == false) {
4545
ivy {
4646
name = 'beats'
4747
if (useLocalArtifacts) {
48-
url getLayout().getBuildDirectory().dir("artifacts").get().asFile
48+
url = getLayout().getBuildDirectory().dir("artifacts").get().asFile
4949
patternLayout {
5050
artifact '/[organisation]/[module]-[revision]-[classifier].[ext]'
5151
}
@@ -127,7 +127,7 @@ ext.expansions = { Architecture architecture, DockerBase base ->
127127
'bin_dir' : base == DockerBase.IRON_BANK ? 'scripts' : 'bin',
128128
'build_date' : buildDate,
129129
'config_dir' : base == DockerBase.IRON_BANK ? 'scripts' : 'config',
130-
'git_revision' : buildParams.gitRevision,
130+
'git_revision' : buildParams.gitRevision.get(),
131131
'license' : base == DockerBase.IRON_BANK ? 'Elastic License 2.0' : 'Elastic-License-2.0',
132132
'package_manager' : base.packageManager,
133133
'docker_base' : base.name().toLowerCase(),
@@ -551,6 +551,7 @@ subprojects { Project subProject ->
551551
inputs.file("${parent.projectDir}/build/markers/${buildTaskName}.marker")
552552
executable = 'docker'
553553
outputs.file(tarFile)
554+
outputs.doNotCacheIf("Build cache is disabled for export tasks") { true }
554555
args "save",
555556
"-o",
556557
tarFile,

distribution/tools/server-cli/src/main/java/org/elasticsearch/server/cli/SystemJvmOptions.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,16 @@ private static Stream<String> maybeAttachEntitlementAgent(boolean useEntitlement
167167
} catch (IOException e) {
168168
throw new IllegalStateException("Failed to list entitlement jars in: " + dir, e);
169169
}
170+
// We instrument classes in these modules to call the bridge. Because the bridge gets patched
171+
// into java.base, we must export the bridge from java.base to these modules.
172+
String modulesContainingEntitlementInstrumentation = "java.logging";
170173
return Stream.of(
171174
"-Des.entitlements.enabled=true",
172175
"-XX:+EnableDynamicAgentLoading",
173176
"-Djdk.attach.allowAttachSelf=true",
174177
"--patch-module=java.base=" + bridgeJar,
175-
"--add-exports=java.base/org.elasticsearch.entitlement.bridge=org.elasticsearch.entitlement"
178+
"--add-exports=java.base/org.elasticsearch.entitlement.bridge=org.elasticsearch.entitlement,"
179+
+ modulesContainingEntitlementInstrumentation
176180
);
177181
}
178182
}

docs/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,9 @@ testClusters.matching { it.name == "yamlRestTest"}.configureEach {
178178
}
179179

180180
tasks.named("yamlRestTest").configure {
181+
def repoFolder = "${layout.buildDirectory.asFile.get()}/cluster/shared/repo"
181182
doFirst {
182-
delete("${buildDir}/cluster/shared/repo")
183+
delete(repoFolder)
183184
}
184185
}
185186

docs/changelog/117519.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
pr: 117519
2+
summary: Remove `data_frame_transforms` roles
3+
area: Transform
4+
type: breaking
5+
issues: []
6+
breaking:
7+
title: Remove `data_frame_transforms` roles
8+
area: Transform
9+
details: >-
10+
`data_frame_transforms_admin` and `data_frame_transforms_user` were deprecated in
11+
Elasticsearch 7 and are being removed in Elasticsearch 9.
12+
`data_frame_transforms_admin` is now `transform_admin`.
13+
`data_frame_transforms_user` is now `transform_user`.
14+
Users must call the `_update` API to replace the permissions on the Transform before the
15+
Transform can be started.
16+
impact: >-
17+
Transforms created with either the `data_frame_transforms_admin` or the
18+
`data_frame_transforms_user` role will fail to start. The Transform will remain
19+
in a `stopped` state, and its health will be red while displaying permission failures.
20+
notable: false

docs/changelog/117949.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 117949
2+
summary: Move `SlowLogFieldProvider` instantiation to node construction
3+
area: Infra/Logging
4+
type: bug
5+
issues: []

docs/changelog/118599.yaml

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

docs/changelog/118774.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 118774
2+
summary: Apply default k for knn query eagerly
3+
area: Vector Search
4+
type: bug
5+
issues: []

0 commit comments

Comments
 (0)