Skip to content

[Visibility Elasticsearch] Return empty page token when result size is less than page size - #11829

Merged
rodrigozhou merged 1 commit into
mainfrom
rodrigozhou/es-page-token
Sep 1, 2026
Merged

rodrigozhou merged 1 commit into
mainfrom
rodrigozhou/es-page-token

Conversation

@rodrigozhou

Copy link
Copy Markdown
Contributor

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?

  • 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 a review from a team August 27, 2026 22:33
@rodrigozhou
rodrigozhou requested review from a team as code owners August 27, 2026 22:33
@rodrigozhou rodrigozhou added reliability-2026 Reliability related changes release/1.32.0 labels Aug 27, 2026
@rodrigozhou
rodrigozhou merged commit 7757511 into main Sep 1, 2026
97 of 98 checks passed
@rodrigozhou
rodrigozhou deleted the rodrigozhou/es-page-token branch September 1, 2026 00:08
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
awln-temporal added a commit that referenced this pull request Sep 3, 2026
## What changed?

Backports the remaining merged PRs labeled
[release/1.32.0](https://github.com/temporalio/temporal/issues?q=state%3Aclosed%20label%3Arelease%2F1.32.0)
onto release/v1.32.x, in main merge order:

- [#11599](#11599) Optimize
Visibility PostgreSQL upgrade schema v1.14
- [#11723](#11723) Validate
history pagination branch token against mutable state
- [#11800](#11800) Capture
panics in Visibility query converter
- [#11813](#11813) Capture
panic in ServiceErrorInterceptor
- [#11829](#11829) Return
empty Elasticsearch page token when the result is smaller than the page
- [#11839](#11839) Fix
FirstWorkflowTaskBackoff accumulation upon Continue-As-New
- [#11801](#11801) Fix
Visibility SQL query conversion

[#11265](#11265) and
[#11564](#11564) were already
present on release/v1.32.x and are not duplicated here.

## Testing

- Targeted unit tests for Visibility query conversion, RPC interception,
History branch-token validation, and Continue-As-New backoff
- make GOLANGCI_LINT_FIX=false
GOLANGCI_LINT_BASE_REV=origin/release/v1.32.x lint-code

---------

Co-authored-by: Rodrigo Zhou <[email protected]>
Co-authored-by: Prathyush PV <[email protected]>
Co-authored-by: Yichao Yang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release/1.32.0 reliability-2026 Reliability related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants