[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Repository corruption? svnadmin hangs?

From: Alejandro Forero Cuervo <bachue_at_bachue.com>
Date: 2005-04-12 00:20:09 CEST

> >My guess is that svn is waiting to obtain a lock in the repository.
> >However, I can't think of anything holding this lock. Perhaps a
> >process died abruptly with the lock and svn does not check to see if
> >the process holding the lock is still running? I really don't know.
>
> Exactly. Good description.

Shouldn't it check and detect that the process holding the lock isn't
running anymore, though?

Normally, programs store their PID in the lock file. When another
process finds the lock, it reads the PID store on it and makes sure
that the process is still running. If it isn't, it'll notice that the
lock is stale and remove it (or at least produce a warning and abort,
rather than wait indefinitly).
 
The real question is what could have caused the process that locked
the repository to die abruptly (seeing that the machine has an uptime
of a few months).

Strange.

Alejo.
http://bachue.com/alejo

---=( Comunidad de Usuarios de Software Libre en Colombia )=---
---=( http://bachue.com/colibri )=--=( colibri_at_bachue.com )=---

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Apr 12 00:17:06 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.