git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* missing objects -- prevention
@ 2013-01-11 11:10 Sitaram Chamarty
  2013-01-11 16:42 ` Jeff King
  0 siblings, 1 reply; 7+ messages in thread
From: Sitaram Chamarty @ 2013-01-11 11:10 UTC (permalink / raw)
  To: Git Mailing List

Hi all,

I find a lot of info on how to recover from and/or repair a repo that
has missing (or corrupted) objects.

What I need is info on common reasons (other than disk errors -- we've
checked for those) for such errors to occur, any preventive measures
we can take, and so on.  For example, can *any* type of network error
or race condition cause this?  (Say, can one push writes an object,
then fails an update check, and a later push succeeds and races
against a gc that removes the unreachable object?)  Or... the repo is
pretty large -- about 6-7 GB, so could size cause a race that would
not show up on a smaller repo?

Anything else I can watch out for or caution the team about?

The symptom is usually a disk space crunch caused by tmp_pack_* files
left around by auto-gc.  Presumably the missing objects failed the gc
and so it left the files around, and they eventually accumulate enough
to cause disk full errors.  (If a gc ever succeeded, I suspect these
files would go away, but that requires manual intervention).

I would appreciate any thoughts...  Thanks!

-- 
Sitaram

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-01-13 12:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-11 11:10 missing objects -- prevention Sitaram Chamarty
2013-01-11 16:42 ` Jeff King
2013-01-12  1:09   ` Sitaram Chamarty
2013-01-12 13:13     ` Jeff King
2013-01-13  0:56       ` Sitaram Chamarty
2013-01-13  0:57         ` Sitaram Chamarty
2013-01-13 12:30         ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).