GC.getStatistics() reports the .midx file size instead of the covered pack files
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 67/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- Java
- Sterne
- 427
- Forks
- 116
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus eclipse-jgit/jgit
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
eclipse-jgit/jgit#329 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
eclipse-jgit/jgit#327 ·
-
Repository.create(boolean bare) should provide a no-arg overload that uses isBare()Evtl. wieder frei @hardikyadav12 hat das vor 77 Tagen übernommen, und es ist kein Pull Request offen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
eclipse-jgit/jgit#297 · 1 Kommentar ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
eclipse-jgit/jgit#293 · 2 Kommentare ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
eclipse-jgit/jgit#288 ·
Alle Issues in eclipse-jgit/jgit
Ähnliche Issues
-
? - Needs Triage bot_watch bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
NVIDIA/cudf-spark-jni#5594 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 1 Tag
-
Upgrade solr to 9.11.0Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
DataONEorg/dataone-indexer#390 ·