jjzhang / booth

The Booth Cluster Ticket Manager
GNU General Public License v2.0
16 stars 37 forks source link

Fixed:correct the calculation of quorum in learner #47

Open seinocluster2 opened 11 years ago

seinocluster2 commented 11 years ago

Learner accumulates the vote when booth runs renew. the number of vote exceeds the total of acceptor after a little. And then, booth always has the quorum.

I consult the following wiki. http://en.wikipedia.org/wiki/Paxos_%28computer_science%29

I think that booth implements renew() by using Multi-Paxos. However, booth still doesn't implement the instance number I(ref wiki). So, I add the instance number to paxos message. Learner can discerns a acceptor message in the same round. And, booth can calculate the correct vote number.

seinocluster2 commented 11 years ago

I need to fix some issues. Please wait to merge this pull request.

seinocluster2 commented 11 years ago

I updated this pull request.

seinocluster2 commented 11 years ago

Are there any comments about those commits?