知识卡片
预写主锁定位提交结果
Percolator 将数据、写元数据与锁放在 Bigtable 的不同列。客户端预写各单元并指定一处主锁,冲突则中止。提交先写主记录,再收尾其余锁。后来者若碰到残留次锁,可通过主记录确认已提交,或根据主锁状态执行恢复,避免把客户端失联直接当成事务失败。
参见 [[跨分片转账统一提交]]。
参见 [[快照隔离仍允许写偏斜]]。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 13. Distributed Transactions 快照隔离与 Percolator · 查看原书依据
b) The first phase, called prewrite. The transaction attempts to acquire locks for all cells written during the transaction. One of the locks is marked as primary and is used for client recovery. The transaction checks for the possible conflicts: if any other transaction has already written any
参考来源
- 位置:《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#percolator,段 119)
- 结论依据:原文用两账户更新说明预写、主锁、提交时间戳和后续事务根据主锁收尾的方式。
- 原始内容:b) The first phase, called prewrite. The transaction attempts to acquire locks for all cells written during the transaction. One of the locks is marked as primary and is used for client recovery. The transaction checks for the possible conflicts: if any other transaction has already written any