We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
` RaftNode#replicate方法,如下
if (raftOptions.isAsyncWrite()) { // 主节点写成功后,就返回。 return true; } `
为什么主节点写成功,就可以返回,万一从节点都失败了呢,你返回用户true,结果却不能应用到状态机????
The text was updated successfully, but these errors were encountered:
raft paper的策略就是这样,可以根据具体业务需求修改策略
Sorry, something went wrong.
No branches or pull requests
`
RaftNode#replicate方法,如下
if (raftOptions.isAsyncWrite()) {
// 主节点写成功后,就返回。
return true;
}
`
为什么主节点写成功,就可以返回,万一从节点都失败了呢,你返回用户true,结果却不能应用到状态机????
The text was updated successfully, but these errors were encountered: