Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

classic paxos demo #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

classic paxos demo #4

wants to merge 1 commit into from

Conversation

lishulong
Copy link

@lishulong lishulong commented Oct 16, 2019

homework: classic paxos demo

需求:
https://github.com/openacid/learn/wiki/homework-1-paxos-demo


This change is Reviewable

# add 2 more to success more easily
majority_num = quorum + 2
if majority_num > len(all_acceptors):
majority_num = len(all_acceptors)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

majority_num 除了打日志没用到啊

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

嗯,我把这个去掉吧
当时是为了测试一下多给几个acceptor发请求会快多少成功,是测试代码忘删了

Copy link
Member

@drmingdrmer drmingdrmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 5 files reviewed, 1 unresolved discussion (waiting on @lishulong, @liubaohai, @pengsven, and @wenbobuaa)


homework/lsl/acceptor.py, line 10 at r1 (raw file):

logger = logging.getLogger(__name__)

wow. my first comment!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants