Tencent / paxosstore

PaxosStore has been deployed in WeChat production for more than two years, providing storage services for the core businesses of WeChat backend. Now PaxosStore is running on thousands of machines, and is able to afford billions of peak TPS.
Other
1.68k stars 338 forks source link

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

Open htner opened 5 years ago

htner commented 5 years ago

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

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