-
Notifications
You must be signed in to change notification settings - Fork 25k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CCS with minimize_roundtrips performs incremental merges of each Sear…
…chResponse (#103134) * CCS with minimize_roundtrips performs incremental merges of each SearchResponse To help address the issue of slow-to-respond clusters in a cross-cluster search, async-search based CCS with minimize_roundtrips=true performs incremental merges of each SearchResponse as they come in from each cluster (including the local cluster). This means, any time the user calls GET _async_search/:id, they will now get search hits and/or aggregation results from any clusters that have finished so far, as well as any partial aggs from the local cluster (existing functionality). The `is_running` field in the async-search response should be used to determine whether at least one cluster has still not reported back its final results. The SearchResponses are collected by MutableSearchResponse. When a user requests an AsyncSearchResponse, if the final response (from onResponse) has not been received, then it will create a new SearchResponseMerger on the fly using the Supplier of SearchResponseMerger in the SearchTask. This is non-null only for CCS MRT=true.
- Loading branch information
Showing
9 changed files
with
765 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 103134 | ||
summary: CCS with `minimize_roundtrips` performs incremental merges of each `SearchResponse` | ||
area: Search | ||
type: enhancement | ||
issues: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.