Repository navigation
Conversation
- Stop setting pack.allowPackReuse=multi: multi-pack reuse produces thin packs whose delta bases are absent for a cloning client, ending in unresolved deltas and pack-objects crashes. - Treat a failing rev-list --test-bitmap as non-fatal: Git selects only a subset of commits for a MIDX bitmap, so a branch tip is not guaranteed to have one. Ordinary traversal stays available and the fold can seal. - Refresh the commit-graph before building the MIDX bitmap. - Clear a stale multi-pack-index.lock left by a crashed writer. - Back off exponentially per repository after repeated maintenance failures.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WalGit Forge hit a compaction loop on a modest repository (19 branches, ~2.8k unique objects, 25 packs):
write_verified_midxsetspack.allowPackReuse=multi, which letspack-objectsreuse deltas across packs. A clone then receives a thin pack whose delta bases are absent, ending inunresolved deltas, invalidindex-packoutput andpack-objectscrashes.rev-list --test-bitmap <tip>was treated as fatal. Git selects only a subset of commits for a MIDX bitmap, so a branch tip is not guaranteed to have one; the fold aborted after publishing additive packs and never sealed, so the repository grew without bound.multi-pack-index writeleaves a lock that blocks the repository indefinitely.This change:
pack.allowPackReuse=single;rev-list --test-bitmapas a warning, leaving ordinary traversal available;multi-pack-index.lockolder than an hour;Validated on the production instance: compaction now seals (9 packs superseded into 1, pack count 25 → 8),
rev-list --test-bitmappasses, and repeated full clones succeed.