Skip to content

Conversation

@rkannan82
Copy link
Contributor

What

Adds unit tests to verify ShutdownWorker API handles poll cancellation errors gracefully.

Why

During rolling upgrades, frontend may be updated before matching. If frontend calls CancelOutstandingWorkerPolls on an old matching node, it returns Unimplemented. The ShutdownWorker API should still succeed (graceful degradation).

How

  • TestShutdownWorkerWithCancellationError: All cancellation calls fail, verifies ShutdownWorker succeeds
  • TestShutdownWorkerWithPartialCancellationFailure: Mixed success/failure (2 succeed, 2 fail), verifies ShutdownWorker succeeds

@rkannan82 rkannan82 requested review from a team as code owners February 11, 2026 22:50
@rkannan82 rkannan82 requested a review from dnr February 11, 2026 22:52
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.

2 participants