-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cross-cluster search with minimize_roundtrips=true reports clusters with no shards to search as failed or skipped #100350
Labels
>bug
:Search/Search
Search-related issues that do not fall into other categories
Team:Search
Meta label for search team
Comments
quux00
added
>bug
needs:triage
Requires assignment of a team area label
:Search/Search
Search-related issues that do not fall into other categories
Team:Search
Meta label for search team
and removed
needs:triage
Requires assignment of a team area label
labels
Oct 5, 2023
Pinging @elastic/es-search (Team:Search) |
quux00
added a commit
to quux00/elasticsearch
that referenced
this issue
Oct 5, 2023
ccs_minimize_roundtrips=true was not checking if no shards were present to search before setting the cluster search status. If number of shards is zero, then cluster search status should be zero. This aligns ccs_minimize_roundtrips=true with the false setting and how it worked in earlier versions. Fixes bug elastic#100350
quux00
added a commit
that referenced
this issue
Oct 6, 2023
#100354) ccs_minimize_roundtrips=true was not checking if no shards were present to search before setting the cluster search status. If the number of shards is zero, then cluster search status should be 'successful'. This aligns ccs_minimize_roundtrips=true with the false setting and how it worked in earlier versions. Fixes bug #100350
quux00
added a commit
to quux00/elasticsearch
that referenced
this issue
Oct 6, 2023
elastic#100354) ccs_minimize_roundtrips=true was not checking if no shards were present to search before setting the cluster search status. If the number of shards is zero, then cluster search status should be 'successful'. This aligns ccs_minimize_roundtrips=true with the false setting and how it worked in earlier versions. Fixes bug elastic#100350
quux00
added a commit
to quux00/elasticsearch
that referenced
this issue
Oct 6, 2023
elastic#100354) ccs_minimize_roundtrips=true was not checking if no shards were present to search before setting the cluster search status. If the number of shards is zero, then cluster search status should be 'successful'. This aligns ccs_minimize_roundtrips=true with the false setting and how it worked in earlier versions. Fixes bug elastic#100350
elasticsearchmachine
pushed a commit
that referenced
this issue
Oct 6, 2023
#100354) (#100442) ccs_minimize_roundtrips=true was not checking if no shards were present to search before setting the cluster search status. If the number of shards is zero, then cluster search status should be 'successful'. This aligns ccs_minimize_roundtrips=true with the false setting and how it worked in earlier versions. Fixes bug #100350
quux00
added a commit
to quux00/elasticsearch
that referenced
this issue
Oct 6, 2023
elastic#100354) ccs_minimize_roundtrips=true was not checking if no shards were present to search before setting the cluster search status. If the number of shards is zero, then cluster search status should be 'successful'. This aligns ccs_minimize_roundtrips=true with the false setting and how it worked in earlier versions. Fixes bug elastic#100350
quux00
added a commit
that referenced
this issue
Oct 6, 2023
#100354) (#100458) ccs_minimize_roundtrips=true was not checking if no shards were present to search before setting the cluster search status. If the number of shards is zero, then cluster search status should be 'successful'. This aligns ccs_minimize_roundtrips=true with the false setting and how it worked in earlier versions. Backported from #100354 Fixes bug #100350
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
>bug
:Search/Search
Search-related issues that do not fall into other categories
Team:Search
Meta label for search team
Elasticsearch Version
8.10
Installed Plugins
No response
Java Version
bundled
OS Version
Darwin michaels-mbp.lan 22.6.0 Darwin Kernel Version 22.6.0: Fri Sep 15 13:41:28 PDT 2023; root:xnu-8796.141.3.700.8~1/RELEASE_ARM64_T6000 arm64
Problem Description
Cross cluster searches done with
ccs_minimize_roundtrips=true
(the default in Kibana as of version 8.10) inappropriately marks searches on remote clusters as "failed" or "skipped" when there are no shards to search (e.g., when that index is not present on the remote cluster). Those clusters should instead be reporting as successful. See "Steps to Reproduce" section for an example of correct vs. incorrect behavior.This bug causes: #100311
Steps to Reproduce
Do a cross-cluster where one or more of the remote clusters lacks an index and query with ccs_minimize_roundtrips=true.
Example:
Result:
The correct response (which you get with ccs_minimize_roundtrips=false) should be:
Logs (if relevant)
No response
The text was updated successfully, but these errors were encountered: