CheckWalArchiveDestination error names barman-cloud-wal-archive instead of barman-cloud-check-wal-archive
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
pkg/walarchive/cmd.go の CheckWalArchiveDestination を読み、エラーのフォーマットをその直前のログ行と比較してください。issue では、pkg/archiver/archiver.go 内の関連するコメントと、barman/clients/cloud_check_wal_archive.py の動作も示されています。エラーがチェックコマンドを正しく示し、コメントが説明されているバケットの動作を反映していれば完了です。
索引モデルが issue の本文から書いたものです。
説明
CheckWalArchiveDestination in pkg/walarchive/cmd.go runs barman-cloud-check-wal-archive, but when it fails it returns:
unexpected failure invoking barman-cloud-wal-archive: exit status 4
The fmt.Errorf at line 188 (main 7b420b0, the same in v0.7.0) formats utils.BarmanCloudWalArchive instead of utils.BarmanCloudCheckWalArchive. The log lines just above it use the right name.
With plugin-barman-cloud this is the message CloudNativePG reports when the first-WAL check fails (in my case a 403 on HeadBucket), so it reads as if WAL archiving itself failed, and it points at the wrong command when debugging.
A related comment in pkg/archiver/archiver.go (line 158) says that barman-cloud-check-wal-archive "only lists the objects in the bucket". It also sends HeadBucket and, if the bucket is missing, creates it (barman/clients/cloud_check_wal_archive.py). Not a bug, but it can mislead someone working out the minimal permissions.
Proposed fix: use utils.BarmanCloudCheckWalArchive in that error, and reword the comment. I can send the PR (signed off, branch dev/<this issue>) if you agree.
- 主要言語
- Go
- スター
- 11
- フォーク
- 31
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 12
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cloudnative-pg/barman-cloud のほかの issue
-
WAL restore starts a new process for every segment対応中かも @Kobayashi-UwU が 53 日前に担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 18/100
cloudnative-pg/barman-cloud#318 ·
メンテナーはふだん 1 日以内に返信
-
Dependency Dashboardオープン
難易度 4/5 3〜5日 初心者へのやさしさ 15/100
cloudnative-pg/barman-cloud#5 ·
メンテナーはふだん 1 日以内に返信
cloudnative-pg/barman-cloud の issue をすべて見る
似ている issue
-
[Bug]: Azure SAS signing uses local time instead of UTC, shifting validity window on non-UTC hosts対応中かも @huanghaoyuanhhy が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
zilliztech/milvus-backup#1418 ·
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
eugenioenko/ttt#1909 ·
メンテナーはふだん 1 日以内に返信
-
ColumnIndex max truncation returns a value smaller than the real max when the prefix is all 0xFFオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
parquet-go/parquet-go#819 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
-
feat(arithmetization): update `arithmetization` to ZkC version `v1.2.38`対応中かも @DavePearce が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
LFDT-Lineth/lineth-monorepo#4679 ·
メンテナーはふだん 1 日以内に返信