I read the docs and presentations online
https://cwiki.apache.org/ZOOKEEPER/zookeeperpresentations.html about the
internals of zab. I am confused about what happens to uncommitted proposals
when new leader is elected after current leader fails. To be precise, these
are the scenarios i am thinking
a) new leader has got a proposal that no other follower has seen, will it
commit this proposal or let it go
b) new leader has got a proposal that majority of nodes have it, will it
commit this or let it go. What happens to other followers, will new leader
ask followers to commit or rollback based on what it does.
c)new leader does not have proposal but one of the followers has it, is
>From what i understood the new leader simply commits all proposals that he
has seen irrespective of what other followers have seen.
Can some one explain what exactly happens, i am more interested in what
happens in the code