Skip to content

Commit 83d4f6a

Browse files
authored
Merge branch 'main' into 131065
2 parents b3d5c9b + 4e81b75 commit 83d4f6a

File tree

55 files changed

+2966
-2751
lines changed

Some content is hidden

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

55 files changed

+2966
-2751
lines changed

build-tools/src/main/java/org/elasticsearch/gradle/testclusters/RunTask.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@ else if (node.getSettingKeys().contains("telemetry.metrics.enabled") == false) {
303303
if (cliDebug) {
304304
enableCliDebug();
305305
}
306-
enableEntitlements();
307306
}
308307

309308
@TaskAction

build-tools/src/main/java/org/elasticsearch/gradle/testclusters/TestClustersAware.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,4 @@ default void enableCliDebug() {
8888
}
8989
}
9090
}
91-
92-
default void enableEntitlements() {
93-
for (ElasticsearchCluster cluster : getClusters()) {
94-
for (ElasticsearchNode node : cluster.getNodes()) {
95-
node.cliJvmArgs("-Des.entitlements.enabled=true");
96-
}
97-
}
98-
}
9991
}

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
import org.elasticsearch.common.settings.Settings;
1313
import org.elasticsearch.common.util.concurrent.EsExecutors;
14-
import org.elasticsearch.jdk.RuntimeVersionFeature;
1514

1615
import java.io.IOException;
1716
import java.nio.file.Files;
@@ -85,7 +84,6 @@ static List<String> systemJvmOptions(Settings nodeSettings, final Map<String, St
8584
maybeSetActiveProcessorCount(nodeSettings),
8685
maybeSetReplayFile(distroType, isHotspot),
8786
maybeWorkaroundG1Bug(),
88-
maybeAllowSecurityManager(useEntitlements),
8987
maybeAttachEntitlementAgent(esHome, useEntitlements)
9088
).flatMap(s -> s).toList();
9189
}
@@ -160,14 +158,6 @@ private static Stream<String> maybeWorkaroundG1Bug() {
160158
return Stream.of();
161159
}
162160

163-
private static Stream<String> maybeAllowSecurityManager(boolean useEntitlements) {
164-
if (RuntimeVersionFeature.isSecurityManagerAvailable()) {
165-
// Will become conditional on useEntitlements once entitlements can run without SM
166-
return Stream.of("-Djava.security.manager=allow");
167-
}
168-
return Stream.of();
169-
}
170-
171161
private static Stream<String> maybeAttachEntitlementAgent(Path esHome, boolean useEntitlements) {
172162
if (useEntitlements == false) {
173163
return Stream.empty();
@@ -191,7 +181,6 @@ private static Stream<String> maybeAttachEntitlementAgent(Path esHome, boolean u
191181
// into java.base, we must export the bridge from java.base to these modules, as a comma-separated list
192182
String modulesContainingEntitlementInstrumentation = "java.logging,java.net.http,java.naming,jdk.net";
193183
return Stream.of(
194-
"-Des.entitlements.enabled=true",
195184
"-XX:+EnableDynamicAgentLoading",
196185
"-Djdk.attach.allowAttachSelf=true",
197186
"--patch-module=java.base=" + bridgeJar,

docs/changelog/130544.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 130544
2+
summary: Sync Inference with Trained Model stats
3+
area: Machine Learning
4+
type: bug
5+
issues:
6+
- 130339

docs/internal/GeneralArchitectureGuide.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,12 @@ capabilities.
182182

183183
## Serializations
184184

185-
## Settings
185+
# Settings
186186

187187
Elasticsearch supports [cluster-level settings][] and [index-level settings][], configurable via [node-level file settings][]
188188
(e.g. `elasticsearch.yml` file), command line arguments and REST APIs.
189189

190-
### Declaring a Setting
190+
## Declaring a Setting
191191

192192
[cluster-level settings]: https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-update-settings.html
193193
[index-level settings]: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html
@@ -222,7 +222,7 @@ settings.
222222
[SettingsModule constructor]: https://github.com/elastic/elasticsearch/blob/v8.13.2/server/src/main/java/org/elasticsearch/node/NodeConstruction.java#L491-L495
223223
[getSettings()]: https://github.com/elastic/elasticsearch/blob/v8.13.2/server/src/main/java/org/elasticsearch/plugins/Plugin.java#L203-L208
224224

225-
### Dynamically updating a Setting
225+
## Dynamically updating a Setting
226226

227227
Externally, [TransportClusterUpdateSettingsAction][] and [TransportUpdateSettingsAction][] (and the corresponding REST endpoints)
228228
allow users to dynamically change cluster and index settings, respectively. Internally, `AbstractScopedSettings` (parent class
@@ -244,9 +244,9 @@ state must ever be reloaded from persisted state.
244244
[Metadata]: https://github.com/elastic/elasticsearch/blob/v8.13.2/server/src/main/java/org/elasticsearch/cluster/metadata/Metadata.java#L212-L213
245245
[applied here]: https://github.com/elastic/elasticsearch/blob/v8.13.2/server/src/main/java/org/elasticsearch/cluster/metadata/Metadata.java#L2437
246246

247-
## Deprecations
247+
# Deprecations
248248

249-
## Backwards Compatibility
249+
# Backwards Compatibility
250250

251251
major releases are mostly about breaking compatibility and dropping deprecated functionality.
252252

@@ -292,18 +292,18 @@ See the [public upgrade docs][] for the upgrade process.
292292

293293
[public upgrade docs]: https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-upgrade.html
294294

295-
## Plugins
295+
# Plugins
296296

297297
(what warrants a plugin?)
298298

299299
(what plugins do we have?)
300300

301-
## Testing
301+
# Testing
302302

303303
(Overview of our testing frameworks. Discuss base test classes.)
304304

305-
### Unit Testing
305+
## Unit Testing
306306

307-
### REST Testing
307+
## REST Testing
308308

309-
### Integration Testing
309+
## Integration Testing

libs/core/src/main/java/org/elasticsearch/jdk/RuntimeVersionFeature.java

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

libs/entitlement/qa/src/javaRestTest/java/org/elasticsearch/entitlement/qa/EntitlementsTestRule.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ protected void before() throws Throwable {
8383
cluster = ElasticsearchCluster.local()
8484
.module("entitled", spec -> buildEntitlements(spec, "org.elasticsearch.entitlement.qa.entitled", ENTITLED_POLICY))
8585
.module(ENTITLEMENT_TEST_PLUGIN_NAME, spec -> setupEntitlements(spec, modular, policyBuilder))
86-
.systemProperty("es.entitlements.enabled", "true")
8786
.systemProperty("es.entitlements.verify_bytecode", "true")
8887
.systemProperty("es.entitlements.testdir", () -> testDir.getRoot().getAbsolutePath())
8988
.systemProperties(spec -> tempDirSystemPropertyProvider.get(testDir.getRoot().toPath()))

modules/apm/src/javaRestTest/java/org/elasticsearch/telemetry/apm/ApmAgentSettingsIT.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818
public class ApmAgentSettingsIT extends ESRestTestCase {
1919

2020
@ClassRule
21-
public static ElasticsearchCluster cluster = ElasticsearchCluster.local()
22-
.module("apm")
23-
.systemProperty("es.entitlements.enabled", "true")
24-
.build();
21+
public static ElasticsearchCluster cluster = ElasticsearchCluster.local().module("apm").build();
2522

2623
@Override
2724
protected String getTestRestCluster() {

muted-tests.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -502,9 +502,6 @@ tests:
502502
- class: org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT
503503
method: test {p0=mtermvectors/10_basic/Tests catching other exceptions per item}
504504
issue: https://github.com/elastic/elasticsearch/issues/122414
505-
- class: org.elasticsearch.xpack.slm.SLMFileSettingsIT
506-
method: testSettingsApplied
507-
issue: https://github.com/elastic/elasticsearch/issues/130853
508505
- class: org.elasticsearch.cluster.ClusterStateSerializationTests
509506
method: testSerializationPreMultiProject
510507
issue: https://github.com/elastic/elasticsearch/issues/130872
@@ -520,9 +517,6 @@ tests:
520517
- class: org.elasticsearch.xpack.esql.action.EsqlActionBreakerIT
521518
method: testRowStatsProjectGroupByInt
522519
issue: https://github.com/elastic/elasticsearch/issues/131024
523-
- class: org.elasticsearch.common.util.concurrent.TaskExecutionTimeTrackingEsThreadPoolExecutorTests
524-
method: testMaxQueueLatency
525-
issue: https://github.com/elastic/elasticsearch/issues/131093
526520
- class: org.elasticsearch.xpack.esql.action.CrossClusterAsyncQueryStopIT
527521
method: testStopQueryLocal
528522
issue: https://github.com/elastic/elasticsearch/issues/121672
@@ -538,6 +532,15 @@ tests:
538532
- class: org.elasticsearch.xpack.esql.ccq.MultiClustersIT
539533
method: testLookupJoinAliases
540534
issue: https://github.com/elastic/elasticsearch/issues/131166
535+
- class: org.elasticsearch.test.rest.yaml.RcsCcsCommonYamlTestSuiteIT
536+
method: test {p0=field_caps/40_time_series/Get simple time series field caps}
537+
issue: https://github.com/elastic/elasticsearch/issues/131225
538+
- class: org.elasticsearch.packaging.test.DockerTests
539+
method: test090SecurityCliPackaging
540+
issue: https://github.com/elastic/elasticsearch/issues/131107
541+
- class: org.elasticsearch.xpack.esql.qa.single_node.GenerativeIT
542+
method: test
543+
issue: https://github.com/elastic/elasticsearch/issues/131154
541544

542545
# Examples:
543546
#

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/135_knn_query_nested_search_ivf.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
setup:
22
- requires:
3-
cluster_features: "mapper.ivf_nested_support"
4-
reason: 'ivf nested support required'
3+
cluster_features: "mapper.bbq_disk_support"
4+
reason: 'bbq disk support required'
55
- do:
66
indices.create:
77
index: test
@@ -24,7 +24,7 @@ setup:
2424
index: true
2525
similarity: l2_norm
2626
index_options:
27-
type: bbq_ivf
27+
type: bbq_disk
2828

2929
aliases:
3030
my_alias:

0 commit comments

Comments
 (0)