Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Close the initial GCS range reader when closing rangedReader

オープン 初心者向け
#2,155 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
84/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
gcp, go
領域
cloud

調査の方向性

pkg/objectstorage/gcsranged.go から始め、GetObject を newRangedReader と rangedReader.Close まで追ってください。初期の GCS range reader が head としてどのように渡されるか、また子 Context がどのようにキャンセルされるかを確認してください。部分的にしか読み取られていない rangedReader を閉じたときに head も閉じられるか、またはその request が別の方法で停止され、後続の range-fetch の動作が変わらなければ完了です。

索引モデルが issue の本文から書いたものです。

説明

area/storage kind/bug

In pkg/objectstorage/gcsranged.go, GetObject opens the first GCS range reader with the caller's context and passes it as head to newRangedReader. newRangedReader creates a child context for later range fetches, but rangedReader.Close only cancels that child context and does not close head. Closing a partially consumed object reader therefore leaves the original head request/body owned by the caller's context instead of stopping it with the returned reader. Please close head on Close (or create it with the reader-owned context and still close it).

主要言語
Go
スター
4.4k
フォーク
515
平均マージ
2日 13時間
マージ済み PR(30日)
279

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

agent-substrate/substrate のほかの issue

agent-substrate/substrate の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。