知识卡片
受保护端拒绝过期请求
本地查锁后到实际操作前仍可能失去租约;旧请求也可能在同一节点再次当选后才到达。请求因此需要携带持有者和这一代的版本,受保护端在执行效果的边界拒绝过期代次。查协调库再独立写外部系统仍存在检查与使用间隙,必须由实际资源提供原子条件写入或隔离机制。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 10. Ownership Election · 查看原书依据
we also send the resource version along with each request. So in the previous example, R1 becomes (R1, Version1). Now when the request is received, the double-check validates both the current owner and the resource version of the request. If either match fails, the request is rejected.
参考来源
- 位置:《Designing Distributed Systems, 2nd Edition》第10章《Chapter 10. Ownership Election》(来源项目 book-sources;源文件:extracted/Designing Distributed Systems, 2nd Edition/_epub-src/OEBPS/ch10.html)
- 结论依据:原文延迟R1跨越两次所有权变更的案例支持代次校验;将其限定到原子效果边界,避免把远程查锁描述为充分安全协议。
- 原始内容:we also send the resource version along with each request. So in the previous example, R1 becomes (R1, Version1). Now when the request is received, the double-check validates both the current owner and the resource version of the request. If either match fails, the request is rejected.