Paxos、Zab... - 9dian/Index GitHub Wiki
Leslie Lamport: Time, Clocks and the Ordering of Events in a Distributed System
活锁
有三种解决方案:
- 在被打回第一阶段再次发起PrepareRequest请求前加入随机等待时间。
- 设置一个超时时间,到达超时时间后,不再接收PrepareRequest请求。
- 在proposer中选举出一个leader,通过leader统一发出PrepareRequest和AcceptRequest。