BReg: status reports ready on a restored copy that is not adopted
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 57/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Rust
- スター
- 2
- フォーク
- 0
- 平均マージ
- 9時間 48分
- マージ済み PR(30日)
- 151
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
registrystack/registry-stack のほかの issue
-
area:breg enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
registrystack/registry-stack#2765 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
registrystack/registry-stack#2761 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
registrystack/registry-stack#2743 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
registrystack/registry-stack#2706 ·
メンテナーはふだん 1 日以内に返信
-
macOS contributor gates: Messaging config tests fail under the symlinked macOS temporary directoryオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
registrystack/registry-stack#2704 ·
メンテナーはふだん 1 日以内に返信
registrystack/registry-stack の issue をすべて見る
似ている issue
-
help wanted needs investigation priority: low
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
AstrBotDevs/AstrBot-desktop#197 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
tomast1337/Puppeter-PptxGenJS#440 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
n0-computer/iroh#4709 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
qingjian-team/qingjian#1114 ·
メンテナーはふだん 2 日以内に返信