BReg: status reports ready on a restored copy that is not adopted
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 57/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Rust
- Stelle
- 2
- Fork
- 0
- Merge medio
- 9h 48m
- PR unite (30g)
- 151
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di registrystack/registry-stack
-
area:breg enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
registrystack/registry-stack#2765 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
registrystack/registry-stack#2761 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
registrystack/registry-stack#2743 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
registrystack/registry-stack#2706 ·
I maintainer di solito rispondono entro 1 giorno
-
macOS contributor gates: Messaging config tests fail under the symlinked macOS temporary directoryAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
registrystack/registry-stack#2704 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di registrystack/registry-stack
Issue simili
-
help wanted needs investigation priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
[Bug] 建议把黑白主题设置同步到启动页面Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
AstrBotDevs/AstrBot-desktop#197 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
tomast1337/Puppeter-PptxGenJS#440 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
n0-computer/iroh#4709 ·
I maintainer di solito rispondono entro 1 giorno
-
生词本里,已标记为认识的词,按钮写「不认识了」读着别扭Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
qingjian-team/qingjian#1114 ·
I maintainer di solito rispondono entro 2 giorni