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

本地单机模拟测试会失败 #24

Open
htner opened this issue Jul 5, 2019 · 0 comments
Open

本地单机模拟测试会失败 #24

htner opened this issue Jul 5, 2019 · 0 comments

Comments

@htner
Copy link

htner commented Jul 5, 2019

在ConnWorker.cpp文件, clsConnWorker::HandleNego函数,
会检查是否为当前paxos内部的IP, 并会在361行会重置ServerId的信息。
如果像 README 例子中一样直接使用本地来启动三个card_srv会引发各种问题。
测试时,可以将ConnWorker.cpp 361行 注释掉。
// poNegoCtx->SetServerID(i);

线上系统注释掉的问题也不大。作为paxos应该信任内部结点的信息, 不存在拜占庭将军问题,如果不信任应该用其他加密方式来初始化链接,而不是暴力重置server_id。

@htner htner changed the title 关于本地单机模拟测试会失败的问题 本地单机模拟测试会失败 Jul 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant