Skip to content

[ES Visibility] Disallow partial results and always populate page token if results is not empty#10540

Open
rodrigozhou wants to merge 1 commit into
mainfrom
rodrigozhou/es-partial-results
Open

[ES Visibility] Disallow partial results and always populate page token if results is not empty#10540
rodrigozhou wants to merge 1 commit into
mainfrom
rodrigozhou/es-partial-results

Conversation

@rodrigozhou
Copy link
Copy Markdown
Contributor

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?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

Potential risks

@rodrigozhou rodrigozhou requested review from a team as code owners June 4, 2026 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant