Close the submodule repository when fetch fails during update
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 77/100
調査の方向性
引用された行にある SubmoduleUpdateCommand.java から始め、条件付き fetch の前後で更新ヘルパーがリポジトリをどう扱うかを追ってください。既存のサブモジュール更新テストを確認し、ローカルの fetch スタブとリポジトリが閉じられたことの検証を探してください。fetch の失敗が引き続き伝播し、その更新のために取得したリポジトリが閉じられれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Version reviewed: org.eclipse.jgit 7.8.1.202611041320-r
In a unit check on macOS 26.6.2 with OpenJDK 21.0.12.1, the submodule walk supplied an existing recording Repository and the fetch operation reported a TransportException. The public update call propagated that exception. The repository received no close call. The test used a local fetch stub.
SubmoduleUpdateCommand opens an existing or restored submodule repository and conditionally fetches before returning it to its caller. If fetch fails, the caller's try-with-resources statement never receives that repository, so its matching close is skipped.
Retain responsibility for the repository until the helper returns it successfully. A failed fetch should release the reference acquired for that update.
The result above was checked locally against the cited release. This report was drafted with AI assistance.
- 主要言語
- Java
- スター
- 427
- フォーク
- 116
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
eclipse-jgit/jgit のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
eclipse-jgit/jgit#329 ·
-
Repository.create(boolean bare) should provide a no-arg overload that uses isBare()再び着手できるかも @hardikyadav12 が 77 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
eclipse-jgit/jgit#297 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
eclipse-jgit/jgit#293 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
eclipse-jgit/jgit#288 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
eclipse-jgit/jgit#273 · コメント 1 件 ·
eclipse-jgit/jgit の issue をすべて見る
似ている issue
-
? - Needs Triage bot_watch bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NVIDIA/cudf-spark-jni#5594 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
DataONEorg/dataone-indexer#390 ·