筏能否通过不提交空操作日志来保证正确性?

huangapple go评论46阅读模式
英文:

Can raft guarantee correctness by not committing no-op logs?

问题

I have a question: the no-op operation is only mentioned in the raft paper in the optimization section of 8. However, there is mention of no-op logs to prevent "ghost recurrence," but this is not mentioned in the author's paper (poorly thought out?). So my question is, without read optimization, i.e., without no-op either, can raft still be correct?

I am not sure if I have made my question clear.

I have read many articles, but they say different things.

update:
I am sorry that this question did not give as much contextual information as possible.
But I have found the answer so far, in short: no read optimizations, i.e., all read operations go into the log, and not committing the no-op log also ensures that the raft is correct.

英文:

I have a question: the no-op operation is only mentioned in the raft paper in the optimization section of 8. However, there is mention of no-op logs to prevent "ghost recurrence", but this is not mentioned in the author's paper (poorly thought out?). So my question is, without read optimisation, i.e. without no-op either, can raft still be correct?

I am not sure if I have made my question clear.

I have read many articles but they say different things

update:
I am sorry that this question did not give as much contextual information as possible.
But I have found the answer so far, in short: no read optimizations, i.e. all read operations go into the log, and not committing the no-op log also ensures that the raft is e correct.

答案1

得分: 0

我认为我知道我在说什么,所以让我们从这样的结论开始,即即使没有读取优化和不提交无操作,草案仍将正常工作。"幽灵重复"的背景是在没有提交无操作的情况下进行了读取优化,因此它出现了。

英文:

I think I know what I'm talking about, so let's start with the conclusion that draft will still work correctly without read optimization and without committing the no-op.
The background of the "ghost recurrence" is that the read optimization is done without committing the no-op, so it appears.

huangapple
  • 本文由 发表于 2023年5月7日 14:07:36
  • 转载请务必保留本文链接:https://go.coder-hub.com/76192428.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定