-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 10.4.3, 10.2.9, 9.4.27
-
Component/s: Mesh
-
None
-
1
-
Severity 3 - Minor
-
6
Issue Summary
After a repack, a repository becomes eligible for another repack after plugin.bitbucket-git.repack.interval has elapsed (default 24 hours). Then, each scheduled garbage collection will perform some heuristics about whether a repack is actually necessary (number of loose objects, number of pack files). This check is expensive and happens every time a modification is made to a repository.
Steps to Reproduce
- Perform a repack of a repository.
- Wait plugin.bitbucket-git.repack.interval
- Perform multiple write operations on the repository
Expected Results
The repository is repacked only when necessary and the check to do so is done efficiently.
Actual Results
The repository is repacked only when necessary and the checks to do so cause lots of file operations, putting pressure on the shared filesystem.
Workaround
Increase plugin.bitbucket-git.repack.interval so that the likelihood that a repack is actually necessary after this interval is high.