Repository navigation
[10.x] fix(runtime): align consistent ring routing with unsigned ranges - #11598
Merged
Merged
Conversation
This was referenced Oct 27, 2026
Use unsigned silo hash positions for member ordering, local boundaries, and primary-owner lookup. Signed and unsigned ordering differ only by a rotation, preserving published cyclic ranges during rolling upgrades. (cherry picked from commit 2438ff0)
ReubenBond
force-pushed
the
rb-ring-hashing-10x-backport
branch
from
October 27, 2026 21:17
030e896 to
74474ae
Compare
This was referenced Oct 29, 2026
This was referenced Nov 5, 2026
Bump Microsoft.Orleans.Clustering.AdoNet and Microsoft.Orleans.Runtime
ScarletKuro/Scarlet.Orleans#9
Open
This was referenced Nov 9, 2026
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.
Backports #11599 (commit 2438ff0) to
10.xfor #11584.ConsistentRingProvidernow uses unsigned silo hash positions consistently for member ordering, local range boundaries, and primary-owner lookup. Requests therefore route to the owner of the published(predecessor, silo]range, including negative silo hashes, endpoints, and wraparound. The same regression coverage exercises signed hash partitions, randomized rings, membership changes, and stopping silos.This affects clusters explicitly configured with
UseVirtualBucketsConsistentRing = false. The default virtual-buckets provider retains its existing behavior. Signed and unsigned member sorting differ only by a rotation, preserving published cyclic ranges for identical membership and insertion order; range-based stream queue balancing retains its existing behavior.During a rolling upgrade, old callers can still route requests to the wrong reminder service. Reminder table writes persist, and the true owners reconcile on their next successful refresh (the default refresh period is five minutes); current
10.xalready gates local reminder scheduling by range. A misrouted newly registered reminder can miss early occurrences before its owner loads the persisted row. Scheduling then resumes at the next futureStartAt + N * Periodoccurrence, so recovery depends on a successful refresh and past occurrences can be missed. Custom grain services which depend on the defective request routing need application-specific upgrade handling.