Skip to content

Commit 19deea7

Browse files
committed
Merge branch 'main' of github.com:elastic/elasticsearch into batch-the-chunks
2 parents 855790b + 98cd34f commit 19deea7

File tree

97 files changed

+4062
-1663
lines changed

Some content is hidden

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

97 files changed

+4062
-1663
lines changed

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

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,36 @@ if (providers.systemProperty('idea.active').getOrNull() == 'true') {
122122
.findAll { it != null }
123123
}
124124

125+
// force IntelliJ to generate *.iml files for each imported module
126+
tasks.register("enableExternalConfiguration") {
127+
group = 'ide'
128+
description = 'Enable per-module *.iml files'
129+
130+
doLast {
131+
modifyXml('.idea/misc.xml') {xml ->
132+
def externalStorageConfig = xml.component.find { it.'@name' == 'ExternalStorageConfigurationManager' }
133+
if (externalStorageConfig) {
134+
xml.remove(externalStorageConfig)
135+
}
136+
}
137+
}
138+
}
139+
140+
// modifies the idea module config to enable preview features on 'elasticsearch-native' module
141+
tasks.register("enablePreviewFeatures") {
142+
group = 'ide'
143+
description = 'Enables preview features on native library module'
144+
dependsOn tasks.named("enableExternalConfiguration")
145+
146+
doLast {
147+
['main', 'test'].each { sourceSet ->
148+
modifyXml(".idea/modules/libs/native/elasticsearch.libs.elasticsearch-native.${sourceSet}.iml") { xml ->
149+
xml.component.find { it.'@name' == 'NewModuleRootManager' }?.'@LANGUAGE_LEVEL' = 'JDK_21_PREVIEW'
150+
}
151+
}
152+
}
153+
}
154+
125155
tasks.register('buildDependencyArtifacts') {
126156
group = 'ide'
127157
description = 'Builds artifacts needed as dependency for IDE modules'
@@ -149,7 +179,10 @@ if (providers.systemProperty('idea.active').getOrNull() == 'true') {
149179
testRunner = 'choose_per_test'
150180
}
151181
taskTriggers {
152-
afterSync tasks.named('configureIdeCheckstyle'), tasks.named('configureIdeaGradleJvm'), tasks.named('buildDependencyArtifacts')
182+
afterSync tasks.named('configureIdeCheckstyle'),
183+
tasks.named('configureIdeaGradleJvm'),
184+
tasks.named('buildDependencyArtifacts'),
185+
tasks.named('enablePreviewFeatures')
153186
}
154187
encodings {
155188
encoding = 'UTF-8'

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,6 @@ private static String distributionProjectName(ElasticsearchDistribution distribu
172172
if (distribution.getType() == InternalElasticsearchDistributionTypes.DOCKER_IRONBANK) {
173173
return projectName + "ironbank-docker" + archString + "-export";
174174
}
175-
if (distribution.getType() == InternalElasticsearchDistributionTypes.DOCKER_CLOUD) {
176-
return projectName + "cloud-docker" + archString + "-export";
177-
}
178175
if (distribution.getType() == InternalElasticsearchDistributionTypes.DOCKER_CLOUD_ESS) {
179176
return projectName + "cloud-ess-docker" + archString + "-export";
180177
}

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

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

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ public class InternalElasticsearchDistributionTypes {
1919
public static ElasticsearchDistributionType DOCKER = new DockerElasticsearchDistributionType();
2020
public static ElasticsearchDistributionType DOCKER_UBI = new DockerUbiElasticsearchDistributionType();
2121
public static ElasticsearchDistributionType DOCKER_IRONBANK = new DockerIronBankElasticsearchDistributionType();
22-
public static ElasticsearchDistributionType DOCKER_CLOUD = new DockerCloudElasticsearchDistributionType();
2322
public static ElasticsearchDistributionType DOCKER_CLOUD_ESS = new DockerCloudEssElasticsearchDistributionType();
2423
public static ElasticsearchDistributionType DOCKER_WOLFI = new DockerWolfiElasticsearchDistributionType();
2524

@@ -29,7 +28,6 @@ public class InternalElasticsearchDistributionTypes {
2928
DOCKER,
3029
DOCKER_UBI,
3130
DOCKER_IRONBANK,
32-
DOCKER_CLOUD,
3331
DOCKER_CLOUD_ESS,
3432
DOCKER_WOLFI
3533
);

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
import static org.elasticsearch.gradle.internal.distribution.InternalElasticsearchDistributionTypes.ALL_INTERNAL;
5050
import static org.elasticsearch.gradle.internal.distribution.InternalElasticsearchDistributionTypes.DEB;
5151
import static org.elasticsearch.gradle.internal.distribution.InternalElasticsearchDistributionTypes.DOCKER;
52-
import static org.elasticsearch.gradle.internal.distribution.InternalElasticsearchDistributionTypes.DOCKER_CLOUD;
5352
import static org.elasticsearch.gradle.internal.distribution.InternalElasticsearchDistributionTypes.DOCKER_CLOUD_ESS;
5453
import static org.elasticsearch.gradle.internal.distribution.InternalElasticsearchDistributionTypes.DOCKER_IRONBANK;
5554
import static org.elasticsearch.gradle.internal.distribution.InternalElasticsearchDistributionTypes.DOCKER_UBI;
@@ -149,7 +148,6 @@ private static Map<ElasticsearchDistributionType, TaskProvider<?>> lifecycleTask
149148
lifecyleTasks.put(DOCKER, project.getTasks().register(taskPrefix + ".docker"));
150149
lifecyleTasks.put(DOCKER_UBI, project.getTasks().register(taskPrefix + ".docker-ubi"));
151150
lifecyleTasks.put(DOCKER_IRONBANK, project.getTasks().register(taskPrefix + ".docker-ironbank"));
152-
lifecyleTasks.put(DOCKER_CLOUD, project.getTasks().register(taskPrefix + ".docker-cloud"));
153151
lifecyleTasks.put(DOCKER_CLOUD_ESS, project.getTasks().register(taskPrefix + ".docker-cloud-ess"));
154152
lifecyleTasks.put(DOCKER_WOLFI, project.getTasks().register(taskPrefix + ".docker-wolfi"));
155153
lifecyleTasks.put(ARCHIVE, project.getTasks().register(taskPrefix + ".archives"));

build-tools-internal/src/main/resources/checkstyle_suppressions.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
<!-- Intentionally have multi line string for a bulk request, otherwise this needs to fallback to string concatenation -->
3636
<suppress files="modules[/\\]data-streams[/\\]src[/\\]javaRestTest[/\\]java[/\\]org[/\\]elasticsearch[/\\]datastreams[/\\]TsdbDataStreamRestIT.java" checks="LineLength" />
3737
<suppress files="qa[/\\]rolling-upgrade[/\\]src[/\\]javaRestTest[/\\]java[/\\]org[/\\]elasticsearch[/\\]upgrades[/\\]TsdbIT.java" checks="LineLength" />
38+
<suppress files="qa[/\\]rolling-upgrade[/\\]src[/\\]javaRestTest[/\\]java[/\\]org[/\\]elasticsearch[/\\]upgrades[/\\]TsdbIndexingRollingUpgradeIT.java" checks="LineLength" />
39+
<suppress files="qa[/\\]rolling-upgrade[/\\]src[/\\]javaRestTest[/\\]java[/\\]org[/\\]elasticsearch[/\\]upgrades[/\\]LogsdbIndexingRollingUpgradeIT.java" checks="LineLength" />
3840

3941
<!-- Gradle requires inputs to be seriablizable -->
4042
<suppress files="build-tools-internal[/\\]src[/\\]main[/\\]java[/\\]org[/\\]elasticsearch[/\\]gradle[/\\]internal[/\\]precommit[/\\]TestingConventionRule.java" checks="RegexpSinglelineJava" />

docs/changelog/113563.yaml

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

docs/reference/cluster/voting-exclusions.asciidoc

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
Adds or removes master-eligible nodes from the
88
<<modules-discovery-voting,voting configuration exclusion list>>.
99

10-
1110
[[voting-config-exclusions-api-request]]
1211
==== {api-request-title}
1312

@@ -28,7 +27,7 @@ users can use this API.
2827

2928
[[voting-config-exclusions-api-desc]]
3029
==== {api-description-title}
31-
30+
3231
By default, if there are more than three master-eligible nodes in the cluster
3332
and you remove fewer than half of the master-eligible nodes in the cluster at
3433
once, the <<modules-discovery-voting,voting configuration>> automatically
@@ -50,14 +49,19 @@ use `DELETE /_cluster/voting_config_exclusions?wait_for_removal=false` to clear
5049
the voting configuration exclusions without waiting for the nodes to leave the
5150
cluster.
5251

53-
If the API fails, you can safely retry it. Only a successful response
54-
guarantees that the node has been removed from the voting configuration and
55-
will not be reinstated.
52+
A response to `POST /_cluster/voting_config_exclusions` with an HTTP status
53+
code of `200 OK` guarantees that the node has been removed from the voting
54+
configuration and will not be reinstated until the voting configuration
55+
exclusions are cleared by calling `DELETE /_cluster/voting_config_exclusions`.
56+
If the call to `POST /_cluster/voting_config_exclusions` fails or returns a
57+
response with an HTTP status code other than `200 OK` then the node may not
58+
have been removed from the voting configuration. In that case, you may safely
59+
retry the call.
5660

5761
NOTE: Voting exclusions are required only when you remove at least half of the
5862
master-eligible nodes from a cluster in a short time period. They are not
59-
required when removing master-ineligible nodes or fewer than half of the
60-
master-eligible nodes.
63+
required when removing master-ineligible nodes or when removing fewer than half
64+
of the master-eligible nodes.
6165

6266
For more information, see <<modules-discovery-removing-nodes>>.
6367

@@ -94,15 +98,15 @@ list. Defaults to `true`, meaning that all excluded nodes must be removed from
9498
the cluster before this API takes any action. If set to `false` then the voting
9599
configuration exclusions list is cleared even if some excluded nodes are still
96100
in the cluster. Only applies to the `DELETE` form of this API.
97-
101+
98102
[[voting-config-exclusions-api-example]]
99103
==== {api-examples-title}
100104

101105
Adds nodes named `nodeName1` and `nodeName2` to the voting configuration
102106
exclusions list:
103107

104108
[source,console]
105-
--------------------------------------------------
109+
--------------------------------------------------
106110
POST /_cluster/voting_config_exclusions?node_names=nodeName1,nodeName2
107111
--------------------------------------------------
108112

docs/reference/connector/docs/connectors-API-tutorial.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ Refer to the individual connectors-references,connector references for these con
367367
====
368368
We're using a self-managed connector in this tutorial.
369369
To use these APIs with an Elastic managed connector, there's some extra setup for API keys.
370-
Refer to native-connectors-manage-API-keys for details.
370+
Refer to <<es-native-connectors-manage-API-keys>> for details.
371371
====
372372

373373
We're now ready to sync our PostgreSQL data to {es}.

docs/reference/connector/docs/connectors-servicenow.asciidoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ Comma-separated list of services to fetch data from ServiceNow. If the value is
8181
- link:https://docs.servicenow.com/bundle/tokyo-it-service-management/page/product/incident-management/concept/c_IncidentManagement.html[Incident]
8282
- link:https://docs.servicenow.com/bundle/tokyo-servicenow-platform/page/use/service-catalog-requests/task/t_AddNewRequestItems.html[Requested Item]
8383
- link:https://docs.servicenow.com/bundle/tokyo-customer-service-management/page/product/customer-service-management/task/t_SearchTheKnowledgeBase.html[Knowledge]
84-
- link:https://docs.servicenow.com/bundle/tokyo-it-service-management/page/product/change-management/task/t_CreateAChange.html[Change Request]
84+
- link:https://docs.servicenow.com/bundle/tokyo-it-service-management/page/product/change-management/task/t_CreateAChange.html[Change request]
8585
+
8686
[NOTE]
8787
====
8888
If you have configured a custom service, the `*` value will not fetch data from the basic services above by default. In this case you'll need to mention these service names explicitly.
8989
====
9090
Default value is `*`. Examples:
9191
+
92-
- `User, Incident, Requested Item, Knowledge, Change Request`
92+
- `User, Incident, Requested Item, Knowledge, Change request`
9393
- `*`
9494
9595
Enable document level security::
@@ -139,7 +139,7 @@ For default services, connectors use the following roles to find users who have
139139
140140
| Knowledge | `admin`, `knowledge`, `knowledge_manager`, `knowledge_admin`
141141
142-
| Change Request | `admin`, `sn_change_read`, `itil`
142+
| Change request | `admin`, `sn_change_read`, `itil`
143143
|===
144144
145145
For services other than these defaults, the connector iterates over access controls with `read` operations and finds the respective roles for those services.
@@ -305,15 +305,15 @@ Comma-separated list of services to fetch data from ServiceNow. If the value is
305305
- link:https://docs.servicenow.com/bundle/tokyo-it-service-management/page/product/incident-management/concept/c_IncidentManagement.html[Incident]
306306
- link:https://docs.servicenow.com/bundle/tokyo-servicenow-platform/page/use/service-catalog-requests/task/t_AddNewRequestItems.html[Requested Item]
307307
- link:https://docs.servicenow.com/bundle/tokyo-customer-service-management/page/product/customer-service-management/task/t_SearchTheKnowledgeBase.html[Knowledge]
308-
- link:https://docs.servicenow.com/bundle/tokyo-it-service-management/page/product/change-management/task/t_CreateAChange.html[Change Request]
308+
- link:https://docs.servicenow.com/bundle/tokyo-it-service-management/page/product/change-management/task/t_CreateAChange.html[Change request]
309309
+
310310
[NOTE]
311311
====
312312
If you have configured a custom service, the `*` value will not fetch data from the basic services above by default. In this case you'll need to mention these service names explicitly.
313313
====
314314
Default value is `*`. Examples:
315315
+
316-
- `User, Incident, Requested Item, Knowledge, Change Request`
316+
- `User, Incident, Requested Item, Knowledge, Change request`
317317
- `*`
318318
319319
`retry_count`::
@@ -374,7 +374,7 @@ For default services, connectors use the following roles to find users who have
374374
375375
| Knowledge | `admin`, `knowledge`, `knowledge_manager`, `knowledge_admin`
376376
377-
| Change Request | `admin`, `sn_change_read`, `itil`
377+
| Change request | `admin`, `sn_change_read`, `itil`
378378
|===
379379
380380
For services other than these defaults, the connector iterates over access controls with `read` operations and finds the respective roles for those services.

0 commit comments

Comments
 (0)