Repository navigation
Conversation
|
💚 CLA has been signed |
tsenart
force-pushed
the
fix/async-search-interim-pagination
branch
from
October 4, 2026 05:28
b7a268c to
c4255f5
Compare
tsenart
marked this pull request as ready for review
October 4, 2026 05:30
Collaborator
|
Pinging @elastic/es-search-foundations (Team:Search Foundations) |
reugn
self-requested a review
October 12, 2026 16:26
reugn
reviewed
Oct 12, 2026
reugn
left a comment
Member
There was a problem hiding this comment.
Thanks for the fix, @tsenart.
Two small things before we merge:
-
Please add a changelog entry since this is a bug fix,
docs/changelog/160955.yaml, in the same format as the other entries indocs/changelog/. -
Could you add a unit test in
TransportSearchActionTests? None of theccsRemoteReducetests setfrom/size, which is why this wasn't caught there. Something like the following would work, with the local cluster plus at least one remote.searchRequest.source(new SearchSourceBuilder().from(3).size(2)); // ... ccsRemoteReduce(task, ...) try (SearchResponseMerger merger = task.getSearchResponseMergerSupplier().get()) { assertEquals(3, merger.from); assertEquals(2, merger.size); }
Collaborator
|
Pinging @elastic/es-search-infra (Team:Search Foundations) |
Author
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.
Closes #160954.
This commit preserves requested paging in interim CCS async-search responses. The shared source is widened for outgoing searches, so each interim merger must use the original page and total-hit limit.
The two-cluster regression blocks the remote query, checks the exact interim hit IDs, then checks the completed page.
Native comparison,
TransportSearchActionTests, fullCrossClusterAsyncSearchIT, and checks for changed files passed on the original candidate. The rebase tod111ec80preserves the patch. Full upstream CI is pending.Found with Perfloop.