GC.getStatistics() reports the .midx file size instead of the covered pack files
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 67/100
調査の方向性
Start by tracing GC.getStatistics() and the pack-file discovery it uses when a multi-pack-index is present; reproduce with a repository containing multiple .pack files and a .midx. Compare the reported size and count with the actual pack files, then check the same statistics before and after writing the multi-pack-index. Done means both values reflect the real pack files.
索引モデルが issue の本文から書いたものです。
説明
Version
7.7.1
Operating System
Linux/Unix
Bug description
With a repository whose objects are stored in multiple pack files covered by a multi-pack-index, GC.getStatistics() returns wrong values for sizeOfPackedObjects and numberOfPackFiles.
To reproduce, enable the multi-pack-index on such a repository, then get the statistics via GarbageCollectCommand or directly:
GC.RepoStatistics stats = new GC(repo).getStatistics();
Actual behavior
stats.sizeOfPackedObjects is close to the size of the objects/pack/multi-pack-index.midx file instead of the total size of the .pack files, and stats.numberOfPackFiles counts all the packs covered by the midx as 1.
For a repository with about 300 MB of pack files covered by a midx, sizeOfPackedObjects is reported as ~7 MB — roughly the size of the .midx file itself. The same statistics were correct before a midx was written for the repository.
Expected behavior
sizeOfPackedObjects should be the sum of the .pack file sizes and numberOfPackFiles the number of real pack files, matching the statistics of the same repository without a multi-pack-index.
Relevant log output
Other information
No response
- 主要言語
- 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 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
eclipse-jgit/jgit#327 ·
-
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 ·
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 ·