Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jgit-dev] Preserve/Prune Old Pack Files

We’ve noticed cases where Stale File Handle Exceptions occur during git operations, which can happen on users of NFS repos when repacking is done on them.

To address this issue, we’ve added two new options to the JGit GC command:

--preserve-oldpacks: moves old pack files into the preserved subdirectory instead of deleting them after repacking

--prune-preserved: prunes old pack files from the preserved subdirectory after repacking, but before potentially moving the latest old pack files to this subdirectory

The strategy is to preserve old pack files around until the next repack with the hopes that they will become unreferenced by then and not cause any exceptions to running processes when they are finally deleted (pruned).

Change is uploaded for review here: https://git.eclipse.org/r/#/c/87969/

Thanks,
James

--
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project


Back to the top