test(cache): concurrent cold size-proof reads coalesce
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 70/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- rust
- 领域
- testing-qa
调研方向
从 crates/cache/src/engine/size_proof_tests.rs 开始,仿照现有的 outboard 测试 concurrent_cold_probes_read_the_outboard_once。阅读 CacheEngine::size_proof_flight 以及用于统计源站读取的计数源站测试辅助函数,了解读取次数是如何统计的。当对同一个冷哈希,针对该计数源站并发发起多个 size_proof 查询,并断言 .sizeproof 的源站读取恰好只发生一次时,测试即完成,其结构应与对应的 outboard 测试保持一致。
由索引模型根据 Issue 内容生成。
描述
CacheEngine::size_proof_flight serializes the origin {H}.sizeproof reads of one hash, so concurrent cold lookups of a hash should read the origin once. No test pins this: crates/cache/src/engine/size_proof_tests.rs has no concurrent case. If the flight were wired wrong (for example a fresh lock per call), every test would still pass.
The outboard path has the matching test, concurrent_cold_probes_read_the_outboard_once. Add the size-proof counterpart: several concurrent size_proof lookups of one cold hash against a counting origin, asserting one .sizeproof read.
Found while reviewing #2932.
- 主要语言
- Rust
- 星标
- 20
- 派生
- 0
- 平均合并
- 11 小时 31 分钟
- 30 天内合并 PR
- 142
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
decdn/decdn 的其他 Issue
-
adr: decdn_serve_stream_rejected_signer_cap_exhausted_total has no metric-registry row可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭design:adr kind:docs prio:low
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 28/100
维护者通常 1 天内回复
-
docs(adr): metric registry lacks rows for 15 exported serve_stream counters可能已有人在做 @yigitdot 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 30/100
维护者通常 1 天内回复
-
area:contracts design:economics kind:proposal
难度 5/5 一周以上 新手友好度 15/100
维护者通常 1 天内回复
-
area:contracts kind:feature
难度 5/5 一周以上 新手友好度 15/100
维护者通常 1 天内回复
相似的 Issue
-
[Bug]: layer.move to the place a layer already has fails and stops a script; with several layers it leaves an empty undo step可能已有人在做 @jgregoriorincon 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
opengeos/RustGIS#2621 · 1 条评论 ·
维护者通常 1 天内回复
-
good first issue web
难度 1/5 1 小时以内 新手友好度 92/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
-
Wait for the IDS correction dialog to settle in the stale-audit test可能已有人在做 @louistrue 今天认领。 未关闭ready
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
good first issue help wanted
难度 2/5 1-3 小时 新手友好度 70/100
dutchman-cad/dutchman#874 ·
维护者通常 1 天内回复