Repository navigation
feat: discard stopped member work - #74
Merged
Merged
Conversation
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.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
725dc475adcf7412c2968d8266934452d21eac0aSummary
SimulationNodeContext.DiscardPendingWork()and terminalSimulationNodeState.Discardedsemantics for consumers which have already stopped or crashed a member.SimulationNodeIdentityin the scheduler, cancel ready/delayed lane work, callback timers and virtual deadlines, readiness work, controlled operations/resource waits, and context-owned shared callbacks such asSuspendForresume.SimulationCluster.DisposeAsyncdraining for members which were not explicitly discarded; exclude discarded members fromActiveNodesand pending-work diagnostics.Relates to ReubenBond/fast-caspaxos#25.
Ownership model
SimulationNodeIdentityis the authoritative kernel ownership key.SimulationNodeContextadditionally owns physical lane items and the cluster-laneSuspendForregistration, so the public transition seals scheduler admission first and then cancels both ownership domains without invoking discarded callbacks.Explicit cluster-lane work (
node: null) remains cluster-owned. Uninstrumented/external work outside the controlled scheduler is not member-owned by Clockwork and is not discarded.Validation
dotnet format --verify-no-changesremains blocked by pre-existing chore: fix ControlledParallel formatting drift #70 in untouchedControlledParallel.cs.