Skip to content

Commit c9d0986

Browse files
committed
Merge branch 'main' into profiler_emit_nanos
# Conflicts: # server/src/main/java/org/elasticsearch/TransportVersions.java
2 parents d071171 + d4e5343 commit c9d0986

File tree

97 files changed

+2247
-1645
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

+2247
-1645
lines changed

docs/changelog/119898.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 119898
2+
summary: Resolve/cluster allows querying for cluster info only (no index expression
3+
required)
4+
area: CCS
5+
type: enhancement
6+
issues: []

docs/changelog/120334.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 120334
2+
summary: Introduce `IndexSettingDeprecatedInV8AndRemovedInV9` Setting property
3+
area: Infra/Settings
4+
type: enhancement
5+
issues: []

docs/changelog/120547.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 120547
2+
summary: Consistent mapping for OTel log and event bodies
3+
area: Data streams
4+
type: enhancement
5+
issues: []

docs/changelog/120643.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 120643
2+
summary: Remove index blocks by default in `create_from`
3+
area: Indices APIs
4+
type: enhancement
5+
issues: []

docs/changelog/120662.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 120662
2+
summary: Fix broken yaml test `30_create_from`
3+
area: Indices APIs
4+
type: bug
5+
issues: []

docs/reference/indices/resolve-cluster.asciidoc

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ For the most up-to-date API details, refer to {api-es}/group/endpoint-indices[In
1111
--
1212

1313
Resolves the specified index expressions to return information about
14-
each cluster, including the local cluster, if included.
14+
each cluster, including the local "querying" cluster, if included. If no index expression
15+
is provided, this endpoint will return information about all the remote
16+
clusters that are configured on the querying cluster.
1517

1618
This endpoint is useful before doing a <<modules-cross-cluster-search,{ccs}>> in
1719
order to determine which remote clusters should be included in a search.
@@ -20,14 +22,13 @@ You use the same index expression with this endpoint as you would for cross-clus
2022
search. Index and <<exclude-problematic-clusters,cluster exclusions>> are also supported
2123
with this endpoint.
2224

23-
For each cluster in the index expression, information is returned about:
25+
For each cluster in scope, information is returned about:
2426

25-
1. whether the querying ("local") cluster is currently connected to each remote cluster
26-
in the index expression scope
27+
1. whether the querying ("local") cluster is currently connected to it
2728
2. whether each remote cluster is configured with `skip_unavailable` as `true` or `false`
2829
3. whether there are any indices, aliases or data streams on that cluster that match
29-
the index expression
30-
4. whether the search is likely to have errors returned when you do the {ccs} (including any
30+
the index expression (if one provided)
31+
4. whether the search is likely to have errors returned when you do a {ccs} (including any
3132
authorization errors if your user does not have permission to query a remote cluster or
3233
the indices on that cluster)
3334
5. (in some cases) cluster version information, including the Elasticsearch server version
@@ -41,6 +42,11 @@ Once the proper security permissions are obtained, then you can rely on the `con
4142
in the response to determine whether the remote cluster is available and ready for querying.
4243
====
4344

45+
NOTE: When querying older clusters that do not support the _resolve/cluster endpoint
46+
without an index expression, the local cluster will send the index expression `dummy*`
47+
to those remote clusters, so if an errors occur, you may see a reference to that index
48+
expression even though you didn't request it. If it causes a problem, you can instead
49+
include an index expression like `*:*` to this endpoint to bypass the issue.
4450

4551
////
4652
[source,console]
@@ -71,14 +77,22 @@ PUT _cluster/settings
7177
// TEST[s/35.238.149.\d+:930\d+/\${transport_host}/]
7278
////
7379

80+
[source,console]
81+
----
82+
GET /_resolve/cluster
83+
----
84+
// TEST[continued]
85+
86+
Returns information about all remote clusters configured on the local cluster.
87+
7488
[source,console]
7589
----
7690
GET /_resolve/cluster/my-index-*,cluster*:my-index-*
7791
----
7892
// TEST[continued]
7993

80-
This will return information about the local cluster and all remotely configured
81-
clusters that start with the alias `cluster*`. Each cluster will return information
94+
Returns information about the local cluster and all remote clusters that
95+
start with the alias `cluster*`. Each cluster will return information
8296
about whether it has any indices, aliases or data streams that match `my-index-*`.
8397

8498
[[resolve-cluster-api-request]]
@@ -126,6 +140,13 @@ ignored when frozen. Defaults to `false`.
126140
+
127141
deprecated:[7.16.0]
128142

143+
[TIP]
144+
====
145+
The index options above are only allowed when specifying an index expression.
146+
You will get an error if you specify index options to the _resolve/cluster API
147+
that takes no index expression.
148+
====
149+
129150

130151
[discrete]
131152
[[usecases-for-resolve-cluster]]

docs/reference/rest-api/common-parms.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ end::search-q[]
875875

876876
tag::query[]
877877
`query`::
878-
(Optional, <<query-dsl,query object>>) Defines the search definition using the
878+
(Optional, <<query-dsl,query object>>) Defines the search query using
879879
<<query-dsl,Query DSL>>.
880880
end::query[]
881881

docs/reference/search/count.asciidoc

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ GET /my-index-000001/_count?q=user:kimchy
1818
--------------------------------------------------
1919
// TEST[setup:my_index]
2020

21-
NOTE: The query being sent in the body must be nested in a `query` key, same as
22-
the <<search-search,search API>> works.
23-
24-
2521
[[search-count-api-request]]
2622
==== {api-request-title}
2723

@@ -39,9 +35,12 @@ or alias.
3935
==== {api-description-title}
4036

4137
The count API allows you to execute a query and get the number of matches for
42-
that query. The query can either
43-
be provided using a simple query string as a parameter, or using the
44-
<<query-dsl,Query DSL>> defined within the request body.
38+
that query. You can provide the query by either:
39+
40+
* Including the <<search-count-api-query-params,`q` query string parameter>>
41+
* Defining <<query-dsl,Query DSL>> within the <<search-count-request-body,request body>>
42+
43+
Using both returns an error.
4544

4645
The count API supports <<api-multi-index,multi-target syntax>>. You can run a single
4746
count API search across multiple data streams and indices.
@@ -92,6 +91,8 @@ include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=lenient]
9291
include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=preference]
9392

9493
include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=search-q]
94+
+
95+
NOTE: If the `q` parameter is specified, the count API does not accept a <<search-count-request-body,request body>>.
9596

9697
include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=routing]
9798

@@ -140,5 +141,5 @@ Both examples above do the same: count the number of documents in
140141
}
141142
--------------------------------------------------
142143

143-
The query is optional, and when not provided, it will use `match_all` to
144-
count all the docs.
144+
The query is optional. When no query is provided, the API uses <<query-dsl-match-all-query,`match_all`>> to
145+
count all the documents.

docs/reference/search/search-your-data/search-across-clusters.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ PUT _cluster/settings
109109
// end::ccs-remote-cluster-setup[]
110110

111111
<1> Since `skip_unavailable` was not set on `cluster_three`, it uses
112-
the default of `false`. See the <<skip-unavailable-clusters>>
112+
the default of `true`. See the <<skip-unavailable-clusters>>
113113
section for details.
114114

115115

libs/entitlement/qa/build.gradle

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ apply plugin: 'elasticsearch.internal-java-rest-test'
1212
apply plugin: 'elasticsearch.internal-test-artifact'
1313

1414
dependencies {
15-
javaRestTestImplementation project(':libs:entitlement:qa:common')
16-
clusterModules project(':libs:entitlement:qa:entitlement-allowed')
17-
clusterModules project(':libs:entitlement:qa:entitlement-allowed-nonmodular')
18-
clusterPlugins project(':libs:entitlement:qa:entitlement-denied')
19-
clusterPlugins project(':libs:entitlement:qa:entitlement-denied-nonmodular')
15+
javaRestTestImplementation project(':libs:entitlement:qa:test-plugin')
16+
clusterModules project(':libs:entitlement:qa:test-plugin')
2017
}

0 commit comments

Comments
 (0)