Yixin Luo

Results 23 comments of Yixin Luo

不会乱啊,每一个instance内只能确认一个提交。不过后续可以加上选举,可以优化性能,避免活锁等情况。

@txm119161336 其实不会的,建议你仔细看下paxos原理和实现相关的论文。因为在每个instance内,只有一个client的提案能够成功,而另外一个client 的提案在这个instance内只能同意已经被多数派同意的提案。所以另外一个client只能将自己的提案留到下一个instance,去提交。

@txm119161336 对,只有在同一个proposer连续提交的时候,才能做优化,否则就会退化到两阶段。所以leader选举是需要的,不过是为了性能考虑(两阶段优化到一阶段),而不是为了正确性考虑。

恩恩,确实有这种情况。是因为在server启动时,会尝试和其他server连接,我这里直接就轮训重试了,应该加上sleep会好些。我有空改下,你也可以提一个pr上来。多谢提醒!

You are right! This is my faults, I will stick with English.

As you can see, my English is poor. I would really appreciate if you could help me with the translations.

I think about leave this job to mzer0-yu. Everyone should be responsible for his code. Make sure it run normally before push.

I have moved `luohaha/CSpider` to `xonce/CSpider` already.

@mzer0-yu Make sure your code work on your branch, and then push. If you can't, do not push it.

I accept @mitghi 's suggestion to do that. I am kind of busy to deal with CSpider alone.