Skip to content

Commit b328f22

Browse files
author
elasticsearchmachine
committed
Merge remote-tracking branch 'origin/main' into lucene_snapshot
2 parents 8b66f5f + afda404 commit b328f22

File tree

202 files changed

+4316
-5712
lines changed

Some content is hidden

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

202 files changed

+4316
-5712
lines changed

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static List<String> systemJvmOptions(Settings nodeSettings, final Map<String, St
7171
maybeSetActiveProcessorCount(nodeSettings),
7272
maybeSetReplayFile(distroType, isHotspot),
7373
maybeWorkaroundG1Bug(),
74-
maybeAllowSecurityManager(),
74+
maybeAllowSecurityManager(useEntitlements),
7575
maybeAttachEntitlementAgent(useEntitlements)
7676
).flatMap(s -> s).toList();
7777
}
@@ -140,8 +140,8 @@ private static Stream<String> maybeWorkaroundG1Bug() {
140140
}
141141

142142
@UpdateForV9(owner = UpdateForV9.Owner.CORE_INFRA)
143-
private static Stream<String> maybeAllowSecurityManager() {
144-
if (RuntimeVersionFeature.isSecurityManagerAvailable()) {
143+
private static Stream<String> maybeAllowSecurityManager(boolean useEntitlements) {
144+
if (useEntitlements == false && RuntimeVersionFeature.isSecurityManagerAvailable()) {
145145
// Will become conditional on useEntitlements once entitlements can run without SM
146146
return Stream.of("-Djava.security.manager=allow");
147147
}
@@ -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/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: []

docs/changelog/118919.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 118919
2+
summary: Remove unsupported timeout from rest-api-spec license API
3+
area: License
4+
type: bug
5+
issues: []

docs/changelog/118921.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 118921
2+
summary: Add missing timeouts to rest-api-spec shutdown APIs
3+
area: Infra/Node Lifecycle
4+
type: bug
5+
issues: []

docs/changelog/118954.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 118954
2+
summary: Add missing parameter to `xpack.info` rest-api-spec
3+
area: Infra/REST API
4+
type: bug
5+
issues: []

docs/changelog/119011.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 119011
2+
summary: "Add support for knn vector queries on `semantic_text` fields"
3+
area: Search
4+
type: enhancement
5+
issues: []

docs/changelog/119348.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 119348
2+
summary: Auto-migrate `max_page_search_size`
3+
area: Transform
4+
type: enhancement
5+
issues: []

docs/changelog/119389.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 119389
2+
summary: Restrict Connector APIs to manage/monitor_connector privileges
3+
area: Extract&Transform
4+
type: feature
5+
issues: []

0 commit comments

Comments
 (0)