Repository navigation
test: stabilize grain directory rolling upgrade test - #10187
Merged
Merged
Conversation
Wait for distributed grain directory membership and partition range locks to converge during rolling upgrade transitions before validating integrity or driving more load. Co-authored-by: Copilot <[email protected]>
ReubenBond
force-pushed
the
reubenbond/rolling-upgrade-fix
branch
from
June 10, 2026 00:41
e994cf9 to
8fcae12
Compare
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
RollingUpgrade_LocalToDistributed_NoErrors can observe the cluster as live before the distributed grain directory has finished applying membership changes and draining partition range locks. That lets integrity validation or follow-up load race expected membership transition work and surface transient GrainDirectoryPartition errors as test failures.
This change adds an internal test hook to wait for a partition to process a target membership version, then uses it after each silo add/stop to wait for distributed directory membership and partition range convergence before validating integrity or sending more calls. The existing error capture remains narrow, so unexpected integrity or routing errors still fail the test.
Microsoft Reviewers: Open in CodeFlow