git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: missing objects -- prevention

From
Jeff King <peff@peff.net>
Date
Jan 13, 2013, 12:30 UTC
Message-ID
<20130113123036.GA498@sigill.intra.peff.net>
In-Reply-To
<CAMK1S_iKARYqi_Dv90og0No7NN=WxFg+ixmRvnkvfdrcOi1r=Q@mail.gmail.com>
On Sun, Jan 13, 2013 at 06:26:53AM +0530, Sitaram Chamarty wrote:
Show 8 quoted lines
> > Right, I meant if you have receive.fsckObjects on. It won't help this
> > situation at all, as we already do a connectivity check separate from
> > the fsck. But I do recommend it in general, just because it helps catch
> > bad objects before they gets disseminated to a wider audience (at which
> > point it is often infeasible to rewind history). And it has found git
> > bugs (e.g., null sha1s in tree entries).
> 
> I will add this.  Any idea if there's a significant performance hit?

Not usually; we are already resolving all of the sent deltas as a precaution, anyway. I do notice after a push to GitHub there is sometimes a second or two of pause from the server before the push status is shown. But I haven't narrowed it down to fsck (versus connectivity check, versus our post-receive hook).

So you may want to keep an eye on the effects (and if you have numbers, please share :) ).

> That's always the hard part.  System admins (at the Unix level) insist
> there's nothing wrong and no disk errors and so on...  that is why I
> was interested in network errors causing problems and so on.

Yeah, I feel bad saying "well, this repo is totally corrupted, but it couldn't possibly be git's fault, because that's not what its failure modes look like". But luckily our Ops people are very understanding, and most of the problems I have seen have turned out to be fs corruption after all (the pack-refs things is the big exception).

> Thanks once again for your patient replies!

No problem. There aren't many people dealing with large-scale server-side issues, so it's something that doesn't come up much on the list. I'm happy to talk about it.

-Peff
Previous: Sitaram Chamarty
Message 7 of 7 in “missing objects -- prevention”
  1. Sitaram ChamartyJan 11, 2013
  2. Jeff KingJan 11, 2013
  3. Sitaram ChamartyJan 12, 2013
  4. Jeff KingJan 12, 2013
  5. Sitaram ChamartyJan 13, 2013
  6. Sitaram ChamartyJan 13, 2013
  7. Jeff KingJan 13, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.