Skip to content

Commit 64b4cde

Browse files
committed
Merge remote-tracking branch 'elastic/master' into ccr
* elastic/master: (53 commits) Painless: Restructure/Clean Up of Spec Documentation (#31013) Update ignore_unmapped serialization after backport Add back dropped substitution on merge high level REST api: cancel task (#30745) Enable engine factory to be pluggable (#31183) Remove vestiges of animal sniffer (#31178) Rename elasticsearch-nio to nio (#31186) Rename elasticsearch-core to core (#31185) Move cli sub-project out of server to libs (#31184) [DOCS] Fixes broken link in auditing settings QA: Better seed nodes for rolling restart [DOCS] Moves ML content to stack-docs [DOCS] Clarifies recommendation for audit index output type (#31146) Add nio-transport as option for http smoke tests (#31162) QA: Set better node names on rolling restart tests Add support for ignore_unmapped to geo sort (#31153) Share common parser in some AcknowledgedResponses (#31169) Fix random failure on SearchQueryIT#testTermExpansionExceptionOnSpanFailure Remove reference to multiple fields with one name (#31127) Remove BlobContainer.move() method (#31100) ...
2 parents 5c6711b + d6a4c14 commit 64b4cde

File tree

403 files changed

+11000
-7422
lines changed

Some content is hidden

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

403 files changed

+11000
-7422
lines changed

build.gradle

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ subprojects {
205205
"org.elasticsearch.gradle:build-tools:${version}": ':build-tools',
206206
"org.elasticsearch:rest-api-spec:${version}": ':rest-api-spec',
207207
"org.elasticsearch:elasticsearch:${version}": ':server',
208-
"org.elasticsearch:elasticsearch-cli:${version}": ':server:cli',
209-
"org.elasticsearch:elasticsearch-core:${version}": ':libs:elasticsearch-core',
210-
"org.elasticsearch:elasticsearch-nio:${version}": ':libs:elasticsearch-nio',
208+
"org.elasticsearch:elasticsearch-cli:${version}": ':libs:cli',
209+
"org.elasticsearch:elasticsearch-core:${version}": ':libs:core',
210+
"org.elasticsearch:elasticsearch-nio:${version}": ':libs:nio',
211211
"org.elasticsearch:elasticsearch-x-content:${version}": ':libs:x-content',
212212
"org.elasticsearch:elasticsearch-secure-sm:${version}": ':libs:secure-sm',
213213
"org.elasticsearch.client:elasticsearch-rest-client:${version}": ':client:rest',
@@ -226,6 +226,7 @@ subprojects {
226226
"org.elasticsearch.distribution.deb:elasticsearch:${version}": ':distribution:packages:deb',
227227
"org.elasticsearch.distribution.deb:elasticsearch-oss:${version}": ':distribution:packages:oss-deb',
228228
"org.elasticsearch.test:logger-usage:${version}": ':test:logger-usage',
229+
"org.elasticsearch.xpack.test:feature-aware:${version}": ':x-pack:test:feature-aware',
229230
// for transport client
230231
"org.elasticsearch.plugin:transport-netty4-client:${version}": ':modules:transport-netty4',
231232
"org.elasticsearch.plugin:reindex-client:${version}": ':modules:reindex',
@@ -311,7 +312,15 @@ gradle.projectsEvaluated {
311312
// :test:framework:test cannot run before and after :server:test
312313
return
313314
}
314-
configurations.all {
315+
configurations.all { Configuration configuration ->
316+
/*
317+
* The featureAwarePlugin configuration has a dependency on x-pack:plugin:core and x-pack:plugin:core has a dependency on the
318+
* featureAwarePlugin configuration. The below task ordering logic would force :x-pack:plugin:core:test
319+
* :x-pack:test:feature-aware:test to depend on each other circularly. We break that cycle here.
320+
*/
321+
if (configuration.name == "featureAwarePlugin") {
322+
return
323+
}
315324
dependencies.all { Dependency dep ->
316325
Project upstreamProject = dependencyToProject(dep)
317326
if (upstreamProject != null) {

buildSrc/src/main/groovy/org/elasticsearch/gradle/test/ClusterConfiguration.groovy

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ class ClusterConfiguration {
8787
* A closure to call which returns the unicast host to connect to for cluster formation.
8888
*
8989
* This allows multi node clusters, or a new cluster to connect to an existing cluster.
90-
* The closure takes two arguments, the NodeInfo for the first node in the cluster, and
91-
* an AntBuilder which may be used to wait on conditions before returning.
90+
* The closure takes three arguments, the NodeInfo for the first node in the cluster,
91+
* the NodeInfo for the node current being configured, an AntBuilder which may be used
92+
* to wait on conditions before returning.
9293
*/
9394
@Input
9495
Closure unicastTransportUri = { NodeInfo seedNode, NodeInfo node, AntBuilder ant ->

client/rest-high-level/src/main/java/org/elasticsearch/client/ClusterClient.java

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,55 @@ public final class ClusterClient {
4141
}
4242

4343
/**
44-
* Updates cluster wide specific settings using the Cluster Update Settings API
44+
* Updates cluster wide specific settings using the Cluster Update Settings API.
45+
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-update-settings.html"> Cluster Update Settings
46+
* API on elastic.co</a>
47+
* @param clusterUpdateSettingsRequest the request
48+
* @param options the request options (e.g. headers), use {@link RequestOptions#DEFAULT} if nothing needs to be customized
49+
* @return the response
50+
* @throws IOException in case there is a problem sending the request or parsing back the response
51+
*/
52+
public ClusterUpdateSettingsResponse putSettings(ClusterUpdateSettingsRequest clusterUpdateSettingsRequest, RequestOptions options)
53+
throws IOException {
54+
return restHighLevelClient.performRequestAndParseEntity(clusterUpdateSettingsRequest, RequestConverters::clusterPutSettings,
55+
options, ClusterUpdateSettingsResponse::fromXContent, emptySet());
56+
}
57+
58+
/**
59+
* Updates cluster wide specific settings using the Cluster Update Settings API.
4560
* <p>
4661
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-update-settings.html"> Cluster Update Settings
4762
* API on elastic.co</a>
63+
* @deprecated Prefer {@link #putSettings(ClusterUpdateSettingsRequest, RequestOptions)}
4864
*/
65+
@Deprecated
4966
public ClusterUpdateSettingsResponse putSettings(ClusterUpdateSettingsRequest clusterUpdateSettingsRequest, Header... headers)
5067
throws IOException {
5168
return restHighLevelClient.performRequestAndParseEntity(clusterUpdateSettingsRequest, RequestConverters::clusterPutSettings,
5269
ClusterUpdateSettingsResponse::fromXContent, emptySet(), headers);
5370
}
5471

5572
/**
56-
* Asynchronously updates cluster wide specific settings using the Cluster Update Settings API
73+
* Asynchronously updates cluster wide specific settings using the Cluster Update Settings API.
74+
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-update-settings.html"> Cluster Update Settings
75+
* API on elastic.co</a>
76+
* @param clusterUpdateSettingsRequest the request
77+
* @param options the request options (e.g. headers), use {@link RequestOptions#DEFAULT} if nothing needs to be customized
78+
* @param listener the listener to be notified upon request completion
79+
*/
80+
public void putSettingsAsync(ClusterUpdateSettingsRequest clusterUpdateSettingsRequest, RequestOptions options,
81+
ActionListener<ClusterUpdateSettingsResponse> listener) {
82+
restHighLevelClient.performRequestAsyncAndParseEntity(clusterUpdateSettingsRequest, RequestConverters::clusterPutSettings,
83+
options, ClusterUpdateSettingsResponse::fromXContent, listener, emptySet());
84+
}
85+
/**
86+
* Asynchronously updates cluster wide specific settings using the Cluster Update Settings API.
5787
* <p>
5888
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-update-settings.html"> Cluster Update Settings
5989
* API on elastic.co</a>
90+
* @deprecated Prefer {@link #putSettingsAsync(ClusterUpdateSettingsRequest, RequestOptions, ActionListener)}
6091
*/
92+
@Deprecated
6193
public void putSettingsAsync(ClusterUpdateSettingsRequest clusterUpdateSettingsRequest,
6294
ActionListener<ClusterUpdateSettingsResponse> listener, Header... headers) {
6395
restHighLevelClient.performRequestAsyncAndParseEntity(clusterUpdateSettingsRequest, RequestConverters::clusterPutSettings,

0 commit comments

Comments
 (0)