Skip to content

Add versioned PollerGroupsInfo, deprecate poller_group_infos#819

Merged
cbsandeep10 merged 1 commit into
mainfrom
sb/poller-groups-version
Jul 7, 2026
Merged

Add versioned PollerGroupsInfo, deprecate poller_group_infos#819
cbsandeep10 merged 1 commit into
mainfrom
sb/poller-groups-version

Conversation

@cbsandeep10

@cbsandeep10 cbsandeep10 commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

What changed?
Introduce a PollerGroupsInfo message carrying a monotonically increasing version alongside the poller groups, so the SDK can ignore stale snapshots that arrive out of order (e.g. after polls are cancelled during cell migration).

Deprecate the repeated poller_group_infos fields in favor of the new poller_groups_info field on DescribeNamespaceResponse and the Poll Workflow/Activity/Nexus TaskQueue responses.

Why?
The server sends poller-group assignment info to the SDK via poll responses. During cell migration, the server cancels in-flight polls and returns updated poller-group info, but responses can arrive out of order — a stale snapshot can land after a fresh one and overwrite it. Attaching a monotonically increasing version lets the SDK ignore any snapshot that isn't newer than the one it has already applied, preventing stale overwrites.

Breaking changes
None. New fields use fresh field numbers (no reuse), and the old poller_group_infos fields are only marked [deprecated = true] — still fully wire-compatible. buf breaking against main passes clean. Consumers referencing the deprecated fields will see deprecation warnings but will not break.

@cbsandeep10 cbsandeep10 force-pushed the sb/poller-groups-version branch from 2492391 to dd104c2 Compare July 7, 2026 18:29
Introduce a PollerGroupsInfo message carrying a monotonically increasing
version alongside the poller groups, so the SDK can ignore stale snapshots
that arrive out of order (e.g. after polls are cancelled during cell
migration).

Deprecate the repeated poller_group_infos fields in favor of the new
poller_groups_info field on DescribeNamespaceResponse and the Poll
Workflow/Activity/Nexus TaskQueue responses.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@cbsandeep10 cbsandeep10 force-pushed the sb/poller-groups-version branch from dd104c2 to b7a58d0 Compare July 7, 2026 18:35
@cbsandeep10 cbsandeep10 marked this pull request as ready for review July 7, 2026 19:40
@cbsandeep10 cbsandeep10 requested review from a team July 7, 2026 19:40
@cbsandeep10 cbsandeep10 merged commit cf9259c into main Jul 7, 2026
4 checks passed
@cbsandeep10 cbsandeep10 deleted the sb/poller-groups-version branch July 7, 2026 20:08
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.

4 participants