BReg: status reports ready on a restored copy that is not adopted
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 57/100
Hướng nghiên cứu
Start with the status command path in crates/registry-breg and the tests named in the issue: a_restored_copy_refuses_to_serve_until_adopted in crates/registry-breg/tests/postgres_startup.rs and real_postgres_an_activation_keeps_a_claim_that_names_another_database in crates/registry-breg/tests/postgres_migration.rs. Compare how claim-status derives matches: false with whatever status reads, then add a diagnostic field without changing the exit code or the ready answer. Done means status still exits 0 on an unadopted copy while saying the claim names another database and that bregctl instance-claim adopt is needed; check deploy/stack_operator.py (adopt-restored) still parses the output.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
bregctl status reports an activated database as ready even when its instance claim names another database. That is the state of a logically restored copy before bregctl instance-claim adopt. The same copy refuses to serve, and readiness fails on a running server, until an operator adopts it (a_restored_copy_refuses_to_serve_until_adopted in crates/registry-breg/tests/postgres_startup.rs).
In a manual restore through the reference operator, claim-status answered matches: false. status on the same database exited 0 with ok: true, maintenanceStatus: ready and no diagnostic. An operator who reads only status sees a ready Registry that will not serve.
status must keep answering on an unadopted copy. adopt-restored in deploy/stack_operator.py reads it before adoption to compare the restored activation with the backup receipt, and real_postgres_an_activation_keeps_a_claim_that_names_another_database in crates/registry-breg/tests/postgres_migration.rs pins that.
Proposal: keep the answer and the exit code, and add a diagnostic or field that says the instance claim names another database and the copy needs bregctl instance-claim adopt before it serves. doctor could report the same.
- Ngôn ngữ chính
- Rust
- Star
- 2
- Fork
- 0
- Merge trung bình
- 9 giờ 48 phút
- Pull request đã merge (30 ngày)
- 151
Chuẩn bị môi trường
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 registrystack/registry-stack
-
area:breg enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
registrystack/registry-stack#2765 ·
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 62/100
registrystack/registry-stack#2761 ·
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 70/100
registrystack/registry-stack#2743 ·
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 76/100
registrystack/registry-stack#2706 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
macOS contributor gates: Messaging config tests fail under the symlinked macOS temporary directoryĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
registrystack/registry-stack#2704 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của registrystack/registry-stack
Issue tương tự
-
help wanted needs investigation priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
[Bug] 建议把黑白主题设置同步到启动页面Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
AstrBotDevs/AstrBot-desktop#197 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
tomast1337/Puppeter-PptxGenJS#440 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
n0-computer/iroh#4709 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
生词本里,已标记为认识的词,按钮写「不认识了」读着别扭Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
qingjian-team/qingjian#1114 ·
Maintainer thường phản hồi trong vòng 2 ngày