知识卡片
当前任期推动提交前缀
领导者确认自己当前任期的条目复制到多数后,才能用该复制事实直接推进提交索引;之前的所有连续条目随这个索引一起提交。写入成功、已提交、应用到状态机是三个不同的时刻,状态机按提交顺序执行。
参见 [[日志新旧限制候选资格]]。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 14. Consensus Raft 的日志与提交 · 查看原书依据
Figure 14-12 shows an example of a consensus round where P₁ is a leader, which has the most recent view of the events. The leader proceeds by replicating the entries to the followers, and committing them after collecting acknowledgments. Committing an entry also commits all entries preceding it
参考来源
- 位置:《Database Internals》Chapter 14. Consensus(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch14.html#idm46104528956184,段 237)
- 结论依据:原文的正常任期示例展示多数复制、随后提交、再传播决定,并说明提交一条同时提交前缀。
- 原始内容:Figure 14-12 shows an example of a consensus round where P₁ is a leader, which has the most recent view of the events. The leader proceeds by replicating the entries to the followers, and committing them after collecting acknowledgments. Committing an entry also commits all entries preceding it