A repository due for repacking can cause excessive file operations when there's nothing to do.

XMLWordPrintable

    • 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

      1. Perform a repack of a repository.
      2. Wait plugin.bitbucket-git.repack.interval
      3. 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.

              Assignee:
              Unassigned
              Reporter:
              Wolfgang Kritzinger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: