Test a_retry_waits_on_its_registration_and_another_backup_is_refused fails when the first restore finishes before the third request
维护者通常 4 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 crates/engine/src/backup/tests.rs 开始,重点查看失败的测试,以及附近使用 bulk_load_gate 和 closed_gate() 的测试。将第一次恢复的批量加载保持暂停,直到第三个请求的断言完成,然后打开闸门。运行 backup::tests::a_retry_waits_on_its_registration_and_another_backup_is_refused;测试应该通过,第三个请求会收到 TableInUseException。
由索引模型根据 Issue 内容生成。
描述
What happens
backup::tests::a_retry_waits_on_its_registration_and_another_backup_is_refused in crates/engine/src/backup/tests.rs failed in the mongodb-rust job of #830's CI on 2026-11-07 (run 42325897438, job 128260989427):
panicked at crates/engine/src/backup/tests.rs:18576:5:
TableAlreadyExistsException("Table already exists: MusicRestored")
The same job passed twice on main at 76b9710dc and once on #411. #830 does not change crates/engine.
Why
The test sends three restore requests for the target MusicRestored:
claim_restore_delayholds the first request's registration for 400 ms.- A retry of the same request waits for that registration and gets the CREATING description.
- A restore of another backup into the same name expects
TableInUseException. A committed registration gives that answer while its restore job runs.
Nothing holds the first restore's job, and the backup has two items. If the job finishes before the third request, the table is ACTIVE, and the third request gets TableAlreadyExistsException. That is the answer in the failed run.
Suggested fix
Hold the first restore's bulk load with bulk_load_gate and a closed_gate(), as other tests in the same file do. Open the gate after the assertion on the third request.
Related: #740.
- 主要语言
- Rust
- 星标
- 517
- 派生
- 60
- 平均合并
- 5 天 3 小时
- 30 天内合并 PR
- 79
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ExtendDB/extenddb 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 4 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 4 天内回复
-
tests: two race tests share one boto3 client across threads and failed with TLSV1_ALERT_DECODE_ERROR未关闭ci:stability
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 4 天内回复
-
documentation
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 4 天内回复
-
storage-sqlite: a restore slot test checks the slot before the copy frees it可能已有人在做 @Dodothereal 于 1 天前认领。 未关闭ci:stability sqlite
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 4 天内回复
查看 ExtendDB/extenddb 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
pop-os/cosmic-applets#1619 ·
维护者通常 3 天内回复
-
binding:python bug
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 78/100
coollabsio/orbit#72 ·
维护者通常 1 天内回复
-
swc_common: Mark::least_ancestor never returns when the answer is the root mark (ANT-2026-JYDQGGRT)未关闭
难度 2/5 1-3 小时 新手友好度 72/100
swc-project/swc-ai-issues#137 ·
-
Synth suite fails unless run from the repo root: signal_flow's default machine path is cwd-relative未关闭bug
难度 2/5 1-3 小时 新手友好度 80/100
Nimblesite/osprey#370 ·
维护者通常 1 天内回复