知识卡片
三阶段提交依赖同步
3PC 在收齐同意票后额外广播可提交状态,使参与者在符合故障假设时能区分可取消与可推进的阶段。它依赖同步且无链路分区的模型。在失联的两群节点分别停在不同阶段时,超时后可能作出相反的决定。多一轮消息也提高正常路径成本。
参见 [[正票后失联会阻塞]]。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 13. Distributed Transactions 三阶段提交与网络假设 · 查看原书依据
To make an atomic commitment protocol robust against coordinator failures and avoid undecided states, the three-phase commit (3PC) protocol adds an extra step, and timeouts on both sides that can allow cohorts to proceed with either commit or abort in the event of coordinator failure, depending on the
参考来源
- 位置:《Database Internals》Chapter 13. Distributed Transactions(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch13.html#three_phase_commit,段 50)
- 结论依据:原文将额外阶段和超时处理建立在同步且无通信故障的模型上,并给出网络分区反例。
- 原始内容:To make an atomic commitment protocol robust against coordinator failures and avoid undecided states, the three-phase commit (3PC) protocol adds an extra step, and timeouts on both sides that can allow cohorts to proceed with either commit or abort in the event of coordinator failure, depending on the