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

日志复制问题 #47

Open
lrydl opened this issue Feb 19, 2022 · 1 comment
Open

日志复制问题 #47

lrydl opened this issue Feb 19, 2022 · 1 comment

Comments

@lrydl
Copy link

lrydl commented Feb 19, 2022

`
RaftNode#replicate方法,如下

if (raftOptions.isAsyncWrite()) {
// 主节点写成功后,就返回。
return true;
}
`

为什么主节点写成功,就可以返回,万一从节点都失败了呢,你返回用户true,结果却不能应用到状态机????

@yzzer
Copy link

yzzer commented Sep 29, 2022

raft paper的策略就是这样,可以根据具体业务需求修改策略

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

2 participants