Repository navigation
[ES Visibility] Disallow partial results and always populate page token if results is not empty - #10540
Merged
Conversation
…en if results is not empty
rodrigozhou
force-pushed
the
rodrigozhou/es-partial-results
branch
from
June 8, 2026 16:44
3261902 to
06e3496
Compare
yycptt
approved these changes
Jun 10, 2026
prathyushpv
pushed a commit
that referenced
this pull request
Jun 11, 2026
## What changed? Fix visibility tests Also refactored the tests to use `await.Require` instead of retrying with sleep. ## Why? PR #10540 caused several tests to fail. ## How did you test it? - [ ] built - [ ] run locally and tested manually - [ ] covered by existing tests - [ ] added new unit test(s) - [ ] added new functional test(s) ## Potential risks
jiechenz
pushed a commit
that referenced
this pull request
Jun 12, 2026
…en if results is not empty (#10540) ## What changed? - Disable partial results from ES searches. - Populate page token whenever the page results is non-empty. ## Why? Prevent early termination when paginating over results: failed shards might produce partial results, which can produce page results to be smaller than the page size, and preventing the page token from being populated. ## How did you test it? - [x] built - [ ] run locally and tested manually - [x] covered by existing tests - [ ] added new unit test(s) - [ ] added new functional test(s) ## Potential risks
jiechenz
pushed a commit
that referenced
this pull request
Jun 12, 2026
## What changed? Fix visibility tests Also refactored the tests to use `await.Require` instead of retrying with sleep. ## Why? PR #10540 caused several tests to fail. ## How did you test it? - [ ] built - [ ] run locally and tested manually - [ ] covered by existing tests - [ ] added new unit test(s) - [ ] added new functional test(s) ## Potential risks
Merged
3 of 5 tasks
rodrigozhou
added a commit
that referenced
this pull request
Sep 1, 2026
…s less than page size (#11829) ## What changed? Return empty page token when result size is less than page size in Visibility with Elasticsearch. This is a partial revert of #10540. ## Why? Since we disabled partial results in search queries, always returning page token is unnecessary. ## How did you test it? - [x] built - [ ] run locally and tested manually - [x] covered by existing tests - [x] added new unit test(s) - [ ] added new functional test(s) ## Potential risks
thestephenstanton
pushed a commit
that referenced
this pull request
Sep 2, 2026
…s less than page size (#11829) ## What changed? Return empty page token when result size is less than page size in Visibility with Elasticsearch. This is a partial revert of #10540. ## Why? Since we disabled partial results in search queries, always returning page token is unnecessary. ## How did you test it? - [x] built - [ ] run locally and tested manually - [x] covered by existing tests - [x] added new unit test(s) - [ ] added new functional test(s) ## Potential risks
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.
What changed?
Why?
Prevent early termination when paginating over results: failed shards might produce partial results, which can produce page results to be smaller than the page size, and preventing the page token from being populated.
How did you test it?
Potential risks