5 karma · joined Aug 17, 2025 (1y ago) · 5 submissions
comment 1y ago · link · parent
[1] https://www.ycombinator.com/blog/new-hacker-news-guideline
> https://www.ycombinator.com/blog/new-hacker-news-guideline
Certainly I've googled. I have found no proofs.
Surely by now you would actually exhibit the formal proof if you had one right? (He asks, for the 3rd time).
Note that a TLA+ spec is not a formal proof. Also note that a model checking run is not a formal proof.
I'm still hoping to learn something new about how proven is, say, the reconfiguration or recovery protocols in VSR.
So far I can only conclude that my research has turned up nothing as far a formal proof for VSR. Please show me I'm wrong with a link to one. :)
comment 1y ago · link · parent
1) https://lamport.azurewebsites.net/pubs/pubs.html#time-clocks
Lamport's 1978 "Time, Clocks, and the Ordering of Events in a Distributed System". The Raft dissertation never really explains why using a logical clock is the critical, central thing. It just glosses over it.
And then read Lampson's 1996 "How to Build a Highly Available System Using Consensus". It will teach you how to prove equivalence of your variation back to an established, proven model. It is very clearly written.
2)https://www.microsoft.com/en-us/research/wp-content/uploads/...
comment 1y ago · link · parent
I was just hoping someone would chime in with a link to stronger/formal proof for VSR. Are you aware of any?
So, yes, to my limited knowledge, I've not found any existing formal proofs for VSR.
The 2012 VSR revisited clearly labels their arguments informal; in section 8: "In this section we provide an informal discussion of the correctness of the protocol."
I'd be delighted to learn of any formal / machine checked proofs of VSR ; equivalent to the Verdi project for Raft.
These are elaborate and subtle protocols, easy to get wrong.
In particular when it comes to things like reconfiguration, even Raft had the famous 2016 bug in the simpler of its two reconfiguration protocols.
Note that Verdi did not attempt to verify the reconfiguration protocol; apparently it was too difficult.
There was an attempt earlier this year to give a proven reconfiguration protocol for Raft called Recraft[1], based on an earlier paper called Adore[2]. They discuss why reconfiguration is so difficult to prove. It has to do with circularity.
"ReCraft: Self-Contained Split, Merge, and Membership Change of Raft Protocol" by Kezhi Xiong, Soonwon Moon, Joshua Kang, Bryant Curto, Jieung Kim, Ji-Yong Shin. last revised 28 Apr 2025, v2.
[1] https://arxiv.org/abs/2504.14802
[2] https://dl.acm.org/doi/pdf/10.1145/3519939.3523444
I'm not completely convinced yet that ReCraft works; at one point I thought they assumed away certain scenarios -- but I need to revisit it with a close reading.
At a minimum, reading the Adore paper's discussion of how much subtlety is involved is pretty compelling.
My conclusion is that formal proof is an absolute necessity to have a fighting chance at a correct implementation--especially when it comes to reconfiguration.
comment 1y ago · link · parent
They found randomized was easier to reason about compared to trying to figure out how to explain and prove correctness when the next "determined" leader has died or been partitioned.
Lacking formal methods, the original VSR work seems less rigorous/proven. Maybe rigorous proof was just not possible at the time; after all Lamport had to work really hard to prove Paxos correct.
Consider that page 31 of Brian Oki's dissertation, http://www.pmg.csail.mit.edu/papers/MIT-LCS-TR-423.pdf , he complete misses problem that is discussed in Figure 3.7 of the Raft dissertation.
That is, the "new view" may be missing information from a leader who had a higher term/view number, but is temporarily offline. Does the orignal VSR provide the same fix that Raft does for that scenario? Does it address other possible scenarios? Mechanical proofs seem conspicuously absent, and even human proofs aren't in ready evidence.
comment 1y ago · link · parent
That's the definition of committed. So you won't get a committed write or read from a partitioned "zombie" leader.
In good (non-buggy) Raft implementations, things are set up so there can only ever be at most one leader at a time.
That is the point of the election, the pre-vote, the leader-leases, the sticky-leader, and the leader-must-step-down rules (from chapter 6 of the dissertation).
Yes those optimizations are described as optional in the Raft dissertation. But really they are not.
You have to read the whole dissertation to the details and full picture.
You should have all of them as a part of a complete and sane implementation.
Pre-vote and sticky-leader are needed for liveness.
Leader leases are possible because you have pre-vote and sticky leader on; and they give you fast local-only leader reads.
The leader step-down rule prevents client liveness and multiple leaders at once.
Even if you do have multiple leaders at once, only one will actually be able to commit, so its not a problem with safety or consistency, just with liveness/not wasting the client's time talking to "a dead man walking".