* Re: Repository corruption
[not found] ` <20080315121903.GY10335@machine.or.cz>
@ 2008-03-15 13:04 ` Yann Dirson
2008-03-16 5:49 ` Christian Couder
2008-03-16 23:01 ` Petr Baudis
0 siblings, 2 replies; 6+ messages in thread
From: Yann Dirson @ 2008-03-15 13:04 UTC (permalink / raw)
To: Petr Baudis; +Cc: GIT list
On Sat, Mar 15, 2008 at 01:19:03PM +0100, Petr Baudis wrote:
> Hi,
>
> On Mon, Sep 10, 2007 at 11:25:50PM +0200, Yann Dirson wrote:
> > Not sure if you saw my note in IRC: it looks like tagua/ydirson.git is
> > definitely corrupted - not sure it would be useful to keep a copy
> > around for investigation, but I'd appreciate if you could nuke the
> > contents, so I can push again to it.
>
> I have nuked it now. :-)
Thanks :)
Any idea what caused the corruption ?
BTW - although I have not reported it on the list, I recently had a
repo corrupted by a "git gc" with 1.5.4.3. Not sure there would be a
link between those 2 events, but who knows...
It may not be easy to investigate, since I do not have an exact copy
of it before the corruption (fortunately I was able to salvage most of
the work that had no backup copy), since that repo is a private one
holding source code I am not allowed to publish, and since I will be
leaving in 2 weeks the position that gives me access to that code.
The corruptions were of several kinds:
- commits for unapplied stgit patches were all lost, although they
were reachable from refs/patches/master/*
- seemingly-random objects in the history (commits, trees, probably
blobs as well) were missing
Does anyone have ideas about post-mortem analysis on that repo ?
That tree was managed with stgit, using a rebase/commit workflow, and
accumulated objects reported by git-count-objects over the months kept
growing, even after "git repack -a" and "git prune", which always
looked suspect to me.
Although it is possible that I had already run git-gc on that tree,
that would not be recently - it was basically a "let's try it and see
if we perform better afterwards".
Best regards,
--
Yann
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Repository corruption
2008-03-15 13:04 ` Repository corruption Yann Dirson
@ 2008-03-16 5:49 ` Christian Couder
2008-03-16 23:01 ` Petr Baudis
1 sibling, 0 replies; 6+ messages in thread
From: Christian Couder @ 2008-03-16 5:49 UTC (permalink / raw)
To: Yann Dirson; +Cc: Petr Baudis, GIT list
Hi Yann,
Le samedi 15 mars 2008, Yann Dirson a écrit :
> The corruptions were of several kinds:
> - commits for unapplied stgit patches were all lost, although they
> were reachable from refs/patches/master/*
> - seemingly-random objects in the history (commits, trees, probably
> blobs as well) were missing
>
> Does anyone have ideas about post-mortem analysis on that repo ?
Did you have a look at:
http://git.kernel.org/?p=git/git.git;a=blob;f=Documentation/howto/recover-corrupted-blob-object.txt;h=323b513ed0e0ce8b749672f589a375073a050b97;hb=HEAD
and
http://git.or.cz/gitwiki/GitFaq#head-ac11406480d09e2df98588e800e41b7256602074
Best regards,
Christian.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Repository corruption
2008-03-15 13:04 ` Repository corruption Yann Dirson
2008-03-16 5:49 ` Christian Couder
@ 2008-03-16 23:01 ` Petr Baudis
2008-03-16 23:14 ` Junio C Hamano
1 sibling, 1 reply; 6+ messages in thread
From: Petr Baudis @ 2008-03-16 23:01 UTC (permalink / raw)
To: Yann Dirson; +Cc: GIT list
On Sat, Mar 15, 2008 at 02:04:41PM +0100, Yann Dirson wrote:
> On Sat, Mar 15, 2008 at 01:19:03PM +0100, Petr Baudis wrote:
> > Hi,
> >
> > On Mon, Sep 10, 2007 at 11:25:50PM +0200, Yann Dirson wrote:
> > > Not sure if you saw my note in IRC: it looks like tagua/ydirson.git is
> > > definitely corrupted - not sure it would be useful to keep a copy
> > > around for investigation, but I'd appreciate if you could nuke the
> > > contents, so I can push again to it.
> >
> > I have nuked it now. :-)
>
> Thanks :)
>
> Any idea what caused the corruption ?
My idea I got few days ago when looking at the borken repositories is
that it was caused by interrupted git-repack, since there were stale
tmp_pack* files left in the repository - it seems like it removed old
"redundant" packs even though the new one weren't properly completed.
But that is just a speculation, and I did not get around to look at the
script yet whether this could really happen, or if something like this
got fixed recently.
--
Petr "Pasky" Baudis
Whatever you can do, or dream you can, begin it.
Boldness has genius, power, and magic in it. -- J. W. von Goethe
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Repository corruption
2008-03-16 23:01 ` Petr Baudis
@ 2008-03-16 23:14 ` Junio C Hamano
0 siblings, 0 replies; 6+ messages in thread
From: Junio C Hamano @ 2008-03-16 23:14 UTC (permalink / raw)
To: Petr Baudis; +Cc: Yann Dirson, GIT list
Petr Baudis <pasky@suse.cz> writes:
> My idea I got few days ago when looking at the borken repositories is
> that it was caused by interrupted git-repack, since there were stale
> tmp_pack* files left in the repository - it seems like it removed old
> "redundant" packs even though the new one weren't properly completed.
> But that is just a speculation, and I did not get around to look at the
> script yet whether this could really happen, or if something like this
> got fixed recently.
Hmm, unless you are talking about ef07618 (git-repack: Properly abort in
corrupt repository, 2005-11-21) as "recent", I do not see anything
suspicious.
We may want to refine the first comment in the remove-redundant loop to
clarify, though. We do check if elements of $existing are actually
redundant or not in the loop against $fullbases these days, since ce85907
(Only repack active packs by skipping over kept packs., 2006-10-29).
^ permalink raw reply [flat|nested] 6+ messages in thread
* repository corruption
@ 2009-04-20 21:08 John Dlugosz
2009-04-20 21:52 ` Johannes Schindelin
0 siblings, 1 reply; 6+ messages in thread
From: John Dlugosz @ 2009-04-20 21:08 UTC (permalink / raw)
To: git
Today I had my first bout of repository corruption.
I'm supposing that network WAN access of files is bound to have its
problems. Is there a git daemon equivalent for Windows?
--John
TradeStation Group, Inc. is a publicly-traded holding company (NASDAQ GS: TRAD) of three operating subsidiaries, TradeStation Securities, Inc. (Member NYSE, FINRA, SIPC and NFA), TradeStation Technologies, Inc., a trading software and subscription company, and TradeStation Europe Limited, a United Kingdom, FSA-authorized introducing brokerage firm. None of these companies provides trading or investment advice, recommendations or endorsements of any kind. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited.
If you received this in error, please contact the sender and delete the material from any computer.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: repository corruption
2009-04-20 21:08 repository corruption John Dlugosz
@ 2009-04-20 21:52 ` Johannes Schindelin
0 siblings, 0 replies; 6+ messages in thread
From: Johannes Schindelin @ 2009-04-20 21:52 UTC (permalink / raw)
To: John Dlugosz; +Cc: git
Hi,
On Mon, 20 Apr 2009, John Dlugosz wrote:
> Is there a git daemon equivalent for Windows?
There is always Cygwin.
If you thought about msysGit, no, I was serious about the alpha status,
and about my warning that nobody should use msysGit without having the
capability of fixing issues herself.
Ciao,
Dscho
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-04-20 21:52 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20070903165255.6CEC78B8B2@rover.dkm.cz>
[not found] ` <20070903174142.GK10749@pasky.or.cz>
[not found] ` <20070910212550.GN1935@nan92-1-81-57-214-146.fbx.proxad.net>
[not found] ` <20080315121903.GY10335@machine.or.cz>
2008-03-15 13:04 ` Repository corruption Yann Dirson
2008-03-16 5:49 ` Christian Couder
2008-03-16 23:01 ` Petr Baudis
2008-03-16 23:14 ` Junio C Hamano
2009-04-20 21:08 repository corruption John Dlugosz
2009-04-20 21:52 ` Johannes Schindelin
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).