知识卡片
跨分片转账统一提交
先完成两侧可恢复的本地操作,再统一提交或回滚,使借记与贷记共同生效。任一分片操作失败时不能单独发布另一边;协调阶段需要明确记录全局决定,参与者恢复后依同一决定继续。具体何时可以提交由所选协议约束。
参见 [[转账部分生效破坏原子性]]。
参见 [[两阶段提交全员同意]]。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 13. Distributed Transactions 事务历史与转账原子性 · 查看原书依据
This means that we have to first execute the transaction and only then make its results visible. But let’s first define what transactions are. A transaction is a set of operations, an atomic unit of execution. Transaction atomicity implies that all its results become visible or none of
参考来源
- 位置:《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#database_transactions,段 7)
- 结论依据:原文定义原子性为所有结果一起可见,并要求不可完成的事务完整回滚;跨节点也应贯彻同一结果。
- 原始内容:This means that we have to first execute the transaction and only then make its results visible. But let’s first define what transactions are. A transaction is a set of operations, an atomic unit of execution. Transaction atomicity implies that all its results become visible or none of