[Bug]: snapshot download mishandles reader close errors
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
バグは fetchFromGCSWithZstd 内で reader を遅延クローズしている箇所にあり、pkg/objectstorage/objects.go の 369〜377 行目付近です。関数のエラー戻り値がどのように設定されているかを読み、そのうえで遅延クローズを変更して、それより前にエラーがない場合にのみクローズのエラーを代入するようにしてください。ダウンロードが成功した場合はクローズのエラーを返し、失敗した場合は元のエラーを保持することが完了条件です。パッケージの既存のテストを確認するか、Close() が失敗するようにするテストを追加してください。
索引モデルが issue の本文から書いたものです。
説明
The deferred reader close in fetchFromGCSWithZstd checks err != nil before assigning the close error.
When the reader's Close() returns an error:
- If decompression succeeds, the function returns
nil, discarding the close error. - If decompression also fails, the close error overwrites the original decompression error.
The close error should be returned only when the download otherwise succeeds. If the download already failed, its original error should be preserved.
- 主要言語
- Go
- スター
- 5.9k
- フォーク
- 637
- 平均マージ
- 2日 10時間
- マージ済み PR(30日)
- 556
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
agent-substrate/substrate のほかの issue
-
area/dev-infra area/observability area/security kind/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
agent-substrate/substrate#3282 ·
メンテナーはふだん 1 日以内に返信
-
filecachegc.runPass suppresses eviction logs when FreedBytes < target and consecutiveShortfalls > 3オープンarea/node area/observability area/storage kind/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
agent-substrate/substrate#3281 ·
メンテナーはふだん 1 日以内に返信
-
docs/egress-trust-bundle.md documents ActorTemplate as a Kubernetes CRD rejected by kubectl ate create actor-template and uses mismatched trust-bundle mount paths対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンarea/network area/security kind/docs
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
agent-substrate/substrate#3278 ·
メンテナーはふだん 1 日以内に返信
-
[bug bash] Actor logs are controlled by Kubernetes RBAC on the pool namespace, not atespace rolesオープンarea/cli area/security bug-bash kind/docs
難易度 1/5 1〜3時間 初心者へのやさしさ 80/100
agent-substrate/substrate#3242 ·
メンテナーはふだん 1 日以内に返信
-
area/security bug-bash kind/docs
難易度 1/5 1時間未満 初心者へのやさしさ 83/100
agent-substrate/substrate#3235 ·
メンテナーはふだん 1 日以内に返信
agent-substrate/substrate の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
-
Energy flow: add an "Other" row so the consumers add up to the consumption total対応中かも @github-actions が今日担当しました。 オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
evcc-io/evcc#35512 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
nebari-dev/nebi#630 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
router-for-me/CLIProxyAPI#7084 ·
メンテナーはふだん 1 日以内に返信