Repository navigation
[8.19] Fix interim async search paging in CCS (#163290) - #165510
Merged
Merged
Conversation
An async cross-cluster search with ccs_minimize_roundtrips=true returned extra hits in interim responses when from was greater than 0. Before it sends the per-cluster searches, the coordinator rewrites the shared search source to from: 0 and size: from + size. The supplier that builds the interim merger read the page from that rewritten source, so interim responses returned the whole widened window instead of the requested page. The final response was always correct. The supplier now takes from, size and track_total_hits from the first merger, which keeps the requested values. (cherry picked from commit e93c8ff)
sarog
pushed a commit
to portsbuild/elasticsearch
that referenced
this pull request
Nov 24, 2026
An async cross-cluster search with ccs_minimize_roundtrips=true returned extra hits in interim responses when from was greater than 0. Before it sends the per-cluster searches, the coordinator rewrites the shared search source to from: 0 and size: from + size. The supplier that builds the interim merger read the page from that rewritten source, so interim responses returned the whole widened window instead of the requested page. The final response was always correct. The supplier now takes from, size and track_total_hits from the first merger, which keeps the requested values. (cherry picked from commit e93c8ff) Co-authored-by: Perfloop Agent <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backports the following commits to 8.19: