The gap must be instances of Paxos that have not reached agreement. In a Paxos Made Simple document, a space is filled with the suggestion of a special "no-op" command that leaves the state unchanged.
If you care about the order of the selected values ​​for Paxos instances, you are better off using Zab because Paxos does not preserve the causal order. https://cwiki.apache.org/confluence/display/ZOOKEEPER/PaxosRun
An invalid command must be instances of Paxos that have reached agreement but have not been studied by the student. The value is unchanged since it was accepted by the acceptor quorum. When you start the paxos instance of this instance ID, the value will be selected and restored to the same value in step 1b.
When followers / followers find a failure on the Leader, or the Leader loses support for a quorum of subordinates / subordinates, they must choose a new leader.
There should be no spaces in the zookeeper, as the follower contacts the TCP leader, which saves the FIFO.
In recovery mode, after selecting a leader, the follower first synchronizes with the leader and applies the modification to the state until it receives NEWLEADER.
In broadcast mode, the follower queues the OFFER in pendingTxns and waits for COMMIT in the same order. If the zxid from COMMIT does not match the zxid of the pending TXns chapter, the follower will exit.
https://cwiki.apache.org/confluence/display/ZOOKEEPER/Zab1.0
source share