Skip to content

[9.5] Fix interim async search paging in CCS (#163290) - #165509

Merged
elasticsearchmachine merged 1 commit into
elastic:9.5from
reugn:backport/9.5/pr-163290
Nov 11, 2026
Merged

elasticsearchmachine merged 1 commit into
elastic:9.5from
reugn:backport/9.5/pr-163290

Conversation

@reugn

@reugn reugn commented Nov 11, 2026

Copy link
Copy Markdown
Member

Backports the following commits to 9.5:

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)
@reugn reugn added >bug backport auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch :Search Foundations/CCS v9.5.7 labels Nov 11, 2026
@elasticsearchmachine
elasticsearchmachine merged commit a6b81d1 into elastic:9.5 Nov 11, 2026
42 checks passed
@reugn
reugn deleted the backport/9.5/pr-163290 branch November 11, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug :Search Foundations/CCS Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v9.5.7 v9.5.8

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants