Skip to content

test(transactions): accept uninterrupted graceful recovery - #10514

Merged
ReubenBond merged 2 commits into
dotnet:mainfrom
ReubenBond:rb-consolidate-transaction-recovery
Aug 12, 2026
Merged

ReubenBond merged 2 commits into
dotnet:mainfrom
ReubenBond:rb-consolidate-transaction-recovery

Conversation

@ReubenBond

@ReubenBond ReubenBond commented Aug 11, 2026 •

Copy link
Copy Markdown
Member

A graceful silo shutdown can complete without producing a client-visible transaction failure, so requiring one makes the recovery test fail despite uninterrupted success. Stop transaction production immediately after graceful shutdown, probe every transaction group after membership convergence, and validate final state. Ungraceful shutdowns retain the strict failure requirement and affected-group recovery path. Diagnostics now report the actual graceful observation deadline.\n\nFixes #10418

Microsoft Reviewers: Open in CodeFlow

Copilot AI lite review requested due to automatic review settings August 11, 2026 21:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the transaction recovery test runner to make graceful-shutdown recovery tests deterministic by no longer requiring a client-visible transaction failure when a silo shuts down gracefully and transactions can continue uninterrupted. It aligns the test with the real recovery invariant (membership convergence + successful probing + final state validation) while keeping the stricter failure expectations for ungraceful shutdown.

Changes:

  • Skips the “must observe a failure” requirement for graceful shutdown by using a zero failure-observation window and probing all transaction groups after convergence.
  • Preserves the strict failure-observation requirement and affected-group recovery path for ungraceful shutdowns.
  • Improves diagnostics by logging the actual observation window/deadline used and updating timeout messages accordingly.
Show a summary per file
File Description
src/Orleans.Transactions.TestKit.Base/TestRunners/TransactionRecoveryTestsRunner.cs Updates failure observation logic to allow uninterrupted graceful recovery and probes all groups after convergence; improves watchdog/diagnostic reporting.

Review details

Tip

Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

ReubenBond and others added 2 commits August 11, 2026 17:01
A graceful silo shutdown can preserve uninterrupted transaction success. Stop waiting for a client-visible failure, probe every transaction group after convergence, and retain strict interruption requirements for ungraceful shutdowns.

Co-authored-by: Copilot App <[email protected]>
Describe both graceful continuity and ungraceful interruption observation accurately.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: d9f4490b-34e6-45f1-b3c7-cfe051e00ca6
Copilot AI review requested due to automatic review settings August 12, 2026 00:02
@ReubenBond
ReubenBond force-pushed the rb-consolidate-transaction-recovery branch from 62e8f54 to 601fe8a Compare August 12, 2026 00:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review details

  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@ReubenBond
ReubenBond merged commit a117325 into dotnet:main Aug 12, 2026
74 checks passed
@ReubenBond
ReubenBond deleted the rb-consolidate-transaction-recovery branch August 12, 2026 00:44
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants