Re: Problem in GIT mirror (was Re: pgsql: Fix all the server-side SIGQUIT handlers ...) - Mailing list pgsql-www

From David Fetter
Subject Re: Problem in GIT mirror (was Re: pgsql: Fix all the server-side SIGQUIT handlers ...)
Date
Msg-id 20090516173139.GA7042@fetter.org
Whole thread Raw
In response to Re: Problem in GIT mirror (was Re: pgsql: Fix all the server-side SIGQUIT handlers ...)  (Magnus Hagander <magnus@hagander.net>)
Responses Re: Problem in GIT mirror (was Re: pgsql: Fix all the server-side SIGQUIT handlers ...)  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Problem in GIT mirror (was Re: pgsql: Fix all the server-side SIGQUIT handlers ...)  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-www
On Sat, May 16, 2009 at 01:51:59PM +0200, Magnus Hagander wrote:
> Magnus Hagander wrote:
> > Alvaro Herrera wrote:
> >> Alvaro Herrera wrote:
> >>> Tom Lane wrote:
> >>>> Log Message:
> >>>> -----------
> >>>> Fix all the server-side SIGQUIT handlers (grumble ... why so many identical
> >>>> copies?) to ensure they really don't run proc_exit/shmem_exit callbacks,
> >>>> as was intended.  I broke this behavior recently by installing atexit
> >>>> callbacks without thinking about the one case where we truly don't want
> >>>> to run those callback functions.  Noted in an example from Dave Page.
> >>> Something seems wrong on the GIT mirror.  This patch appears as
> >>> http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=e5a8ea96adf14b9d822aff82d8f4ebf41d3a8e95
> >>> however, it only shows the diff for xlog.c, not the other files that
> >>> were touched by this commit.
> >> So I foolishly assumed that it would fix itself when the next sync
> >> occured, but several hours have passed and the problem still exists.
> >>
> > 
> > I tried to figure something out about this, but I have no clue.
> > 
> > The rsync:ed copy of the cvs repository that the conversion runs at has
> > all the changes.
> > 
> > The git repository has only the xlog.c one (checked in the server repo
> > as well just to be sure it wasn't anything in the gitweb install or
> > anything)
> > 
> > The ruby magic ("fromcvs") that does the importing says nothing - it
> > runs without any complaints and says there is nothing to do.
> > 
> > 
> > Any ideas at all where to look?
> > 
> > I wonder if the many identical copies somehow broke the import script or
> > something...
> 
> 
> Ok, a bit further.
> 
> I tried restoring a backup and re-running the conversion script. Then it
> works.
> 
> The only reason I can see for this failure is that the rsync happened
> just as the files were committed, and for that reason we got a partial
> commit (since cvs doesn't to atomic operations). Then when we got the
> rest of the modifications, the migration script had already flagged that
> one was imported.
> 
> We can work off tihs that came off the backup, but that invalides the
> last couple of commits, which will AFAIK break everybody who has cloned
> the repository?
> 
> Does anybody know of a better way to fix it, without this happening?

Not sure exactly, but the nice people at
<http://repo.or.cz/w/PostgreSQL.git> appear to be managing not to have
this problem.  What say we look into how they're doing theirs? :)

Cheers,
David.
-- 
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


pgsql-www by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Problem in GIT mirror (was Re: pgsql: Fix all the server-side SIGQUIT handlers ...)
Next
From: Tom Lane
Date:
Subject: Re: Problem in GIT mirror (was Re: pgsql: Fix all the server-side SIGQUIT handlers ...)