Last modified: 2012-11-16 19:25:18 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T39083, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37083 - Setup periodic repack of git repos
Setup periodic repack of git repos
Status: RESOLVED WONTFIX
Product: Wikimedia
Classification: Unclassified
Git/Gerrit (Other open bugs)
unspecified
All All
: Lowest minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-24 12:37 UTC by Chad H.
Modified: 2012-11-16 19:25 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Chad H. 2012-05-24 12:37:45 UTC
Per the docs, JGit doesn't periodically do cleanup things like a normally cloned repository would.

It might be worth looking at running an occasional `git gc` or something with git-repack from time to time to keep the repo sizes sane.

Full docs on the issue: http://code.google.com/p/gerrit/wiki/Scaling#Git_GC
Comment 1 Chad H. 2012-11-16 19:25:18 UTC
We tried this and it failed spectacularly[0]. JGit now supports gc[1], and we're hoping to have the feature in Gerrit eventually. When that's the case, it'll happen automagically.

I don't plan on re-attempting the original git gc again, so marking this WONTFIX.

[0] https://blog.wikimedia.org/2012/09/07/recovery-of-broken-gerrit-repositories/
[1] https://gerrit-review.googlesource.com/#/c/38952/

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links