Repository navigation
Conversation
A sync that collects the state of a view the node already left no longer stops the current view, writes a new view record for it, or moves to it, as changeView already refuses to start a left view. Written by Claude for @HagarMeir. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Hagar Meir <hagar.meir@ibm.com>
|
One thing I'm not sure about, and it is outside the lines changed here, so please treat it as a question rather than a finding. While reading the carry path, I wondered what happens when a node restarts with an uncommitted proposal in its WAL and the cluster has already carried a different proposal at the same sequence. As I read it:
If that is right, the node would start the new view in the old phase, broadcast the old view's prepare/commit (which peers drop), and later refuse the carried proposal at the same sequence because I may be missing a guard or a later path that clears this state, so I am not claiming this is a defect. Could you confirm whether |
When a sync collects the state of a newer view, it stops the current view and writes a new view record for the collected view. It did that also for a view the node already left, after it sent its view data for a later one.
changeViewthen refused to start that view, so no view ran until the next view change or sync. The record also hid the view change record from a restart, after which the node could run the view it left.Now, under the view transition lock, a sync that collects a view below
minStartViewdoesn't stop the current view, doesn't write the record, and doesn't move to that view, aschangeViewalready refuses to.Fixes #799.
Written by Claude for @HagarMeir.
🤖 Generated with Claude Code