Repository navigation
[10.x] fix(azure): upgrade legacy membership tables safely - #11596
Merged
ReubenBond merged 3 commits intoOct 27, 2026
Merged
Conversation
ReubenBond
force-pushed
the
rb-azure-membership-10x-backport
branch
from
October 27, 2026 21:17
5e4db96 to
5b0d792
Compare
ReubenBond
force-pushed
the
rb-azure-membership-10x-backport
branch
from
October 27, 2026 21:28
5b0d792 to
04d53ae
Compare
This was referenced Oct 29, 2026
This was referenced Nov 5, 2026
This was referenced Nov 7, 2026
Bump Microsoft.Orleans.Clustering.AdoNet and Microsoft.Orleans.Runtime
ScarletKuro/Scarlet.Orleans#9
Open
This was referenced Nov 16, 2026
This was referenced Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Azure Table membership tables last written by Orleans 10.2.x contain
VersionRowand silo rows. Upgraded readers require the ordered!Startand~Endboundary 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
VersionRowbefore 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-xprovenance for all three main commits:0a1dfc3805f8371612cba8d52fec457737105c2801aa69b8c384a60a02c10f26a1c8e330e9d6edbc9fd511ce8e6d1e5c8760f88719fe9fcf82322534All patch IDs match the source commits; no adaptations were required.
Relates to #11571.
Microsoft Reviewers: Open in CodeFlow