Test a_retry_waits_on_its_registration_and_another_backup_is_refused fails when the first restore finishes before the third request
Maintainer thường phản hồi trong vòng 4 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 76/100
Hướng nghiên cứu
Bắt đầu với crates/engine/src/backup/tests.rs, đặc biệt là bài kiểm thử đang thất bại và các bài kiểm thử gần đó sử dụng bulk_load_gate và closed_gate(). Giữ thao tác tải hàng loạt của lần khôi phục đầu tiên ở trạng thái chờ cho đến sau phần assertion của yêu cầu thứ ba, rồi mở cổng. Chạy backup::tests::a_retry_waits_on_its_registration_and_another_backup_is_refused; bài kiểm thử sẽ chạy thành công và yêu cầu thứ ba nhận được TableInUseException.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Rust
- Star
- 517
- Fork
- 60
- Merge trung bình
- 5 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 79
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ExtendDB/extenddb
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 4 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 4 ngày
-
tests: two race tests share one boto3 client across threads and failed with TLSV1_ALERT_DECODE_ERRORĐang mởci:stability
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 4 ngày
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 4 ngày
-
storage-sqlite: a restore slot test checks the slot before the copy frees itCó thể đã có người làm @Dodothereal đã nhận hôm nay. Đang mởci:stability sqlite
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 4 ngày
Tất cả issue của ExtendDB/extenddb
Issue tương tự
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
bug order-flow studies ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
userFRM/egui-charts#2417 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
In a plain-text message, Font, Font Size, Font Color and Text Highlight Color stay liveCó thể đã có người làm @ragelfundionctrumnar đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
UCS-Care-Group/mailcraft#862 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
smoltcp-rs/smoltcp#1243 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày