Files
temporal/api
Kannan 2220cf011a Move CancelOutstandingWorkerPolls partition fan out to matching server (#9424)
## What

Move poll cancellation fan-out from frontend to matching. Frontend sends
one RPC to matching root partition; matching root does flat fan-out —
computes all partitions, groups by host, sends one
`CancelOutstandingWorkerPollsPartition` RPC per remote host. Local
partitions are processed directly (no self-RPC).

## Why

Avoids frontend needing to know about partition topology. Enables
host-level batching (one RPC per host instead of one per partition), and
ensures `removePollerFromHistory` runs for all co-located partitions.

## How did you test it?

- Unit tests: flat fan-out groups partitions by host correctly, local
partitions handled without RPC, remote host errors don't block other
hosts, fallback to individual RPCs when routing client unavailable
- Partition API tests: empty partitions/workers, cancel + shutdown cache
population
- Functional test: `TestShutdownWorkerCancelsOutstandingPolls`


🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-07-14 20:50:43 +00:00
..
2026-03-30 15:30:50 -07:00
2026-03-30 15:30:50 -07:00
2026-03-30 15:30:50 -07:00
2026-03-30 15:30:50 -07:00
2026-03-30 15:30:50 -07:00