Bug 581267 - JGit bitmap is bloated with annotated tags
Summary: JGit bitmap is bloated with annotated tags
Status: RESOLVED FIXED
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 5.13   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: 5.13.2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-27 19:43 EST by Luca Milanesio CLA
Modified: 2023-01-31 17:21 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luca Milanesio CLA 2022-12-27 19:43:46 EST
When creating a bitmap using JGit, two packfiles are created:
1. All heads, excluding tags and non-heads
2. Everything else

The 1. is accompanied with a bitmap for all the commits included in it, excluding all non-heads and tags.

What I see is that *IF* a repository contains annotated tags, they are included in the bitmap. If the number of annotated tags is significant, the bitmap is so bloated to become unusable.

To reproduce the issue:
- Create a repository with 1 branch and 100 commits
- Set pack.bitmapContiguousCommitCount=1
- Create 100 annotated tags, one per commit

Expected behaviour:
- JGit GC create 1 bitmap for the single branch

Observed behaviour:
- JGit GC creates 101 bitmaps, one for the single branch + one per every annotated tag