Skip to content

[10.x] fix(azure): upgrade legacy membership tables safely - #11596

Merged
ReubenBond merged 3 commits into
dotnet:10.xfrom
ReubenBond:rb-azure-membership-10x-backport
Oct 27, 2026
Merged

ReubenBond merged 3 commits into
dotnet:10.xfrom
ReubenBond:rb-azure-membership-10x-backport

Conversation

@ReubenBond

@ReubenBond ReubenBond commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Problem

Azure Table membership tables last written by Orleans 10.2.x contain VersionRow and silo rows. Upgraded readers require the ordered !Start and ~End boundary rows, so existing clusters fail membership initialization.

Solution and safety

Keep snapshot validation synchronous and accept legacy snapshots when both boundary markers are absent. The first successful membership insert or update atomically establishes both markers alongside the membership version and silo change, using the existing canonical write transaction. Reads preserve the legacy version and row ETags until that write.

A query overlapping marker installation can observe a partial boundary pair. Partial or mismatched pairs trigger the existing bounded snapshot retry; persistent inconsistency fails with cluster and table context. Once both markers are visible, their versions must match VersionRow before accepting the snapshot.

Regression coverage seeds legacy tables with 0, 1, and 1001 silo rows, verifies row and ETag preservation, and exercises the first marker-installing write, stale-token rejection, and Joining-to-Active transitions. Deterministic cases verify one-query legacy reads, torn-read recovery, and bounded failure.

Backport provenance

Cherry-picked unchanged from #11594 onto 10.x, preserving -x provenance for all three main commits:

  • 0a1dfc3805f8371612cba8d52fec457737105c28
  • 01aa69b8c384a60a02c10f26a1c8e330e9d6edbc
  • 9fd511ce8e6d1e5c8760f88719fe9fcf82322534

All patch IDs match the source commits; no adaptations were required.

Relates to #11571.

Microsoft Reviewers: Open in CodeFlow

@ReubenBond ReubenBond changed the title fix(azure): backport legacy membership table upgrade to 10.x [10.x] fix(azure): upgrade legacy membership tables safely Oct 27, 2026
@ReubenBond
ReubenBond force-pushed the rb-azure-membership-10x-backport branch from 5e4db96 to 5b0d792 Compare October 27, 2026 21:17
@ReubenBond
ReubenBond force-pushed the rb-azure-membership-10x-backport branch from 5b0d792 to 04d53ae Compare October 27, 2026 21:28
@ReubenBond
ReubenBond merged commit dbd4e9b into dotnet:10.x Oct 27, 2026
143 of 145 checks passed
@ReubenBond
ReubenBond deleted the rb-azure-membership-10x-backport branch October 27, 2026 23:14
This was referenced Oct 29, 2026
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.

1 participant