← 返回刚才阅读的位置

知识卡片

结构图卡 · 10294.a.4.a.2.c.1.b.9.c.1.a · 生成模型:未记录

阻塞读修复保证单调

理解等级:高级

读到一项较新更新时,阻塞模式等待修复被目标副本确认,让该版本在后续任何读多数派中都能被找到。异步模式可先返回并稍后发送修复,降低请求等待,但下一次读可能接触另一组尚未得到更新的节点。

结构图:

flowchart TD
A[从多数派读取] --> B{副本结果一致}
B -->|是| C[返回值]
B -->|否| D[合并并补写落后副本]
D --> E[等待达到修复确认条件]
E --> C
这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Database Internals》Chapter 12. Anti-Entropy and Dissemination(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch12.html#read_repair,段 21) - 结论依据:原文说明法定人数是单调性前提,并将可用性下降归因于要等确认。 - 原始内容:Blocking read repair ensures read monotonicity (see “Session Models”) for quorum reads: as soon as the client reads a specific value, subsequent reads return the value at least as recent as the one it has seen, since replica states