bzr 0.13 - Long silent spin trying to lock when lacking write permission to lockdir

John Arbash Meinel john at arbash-meinel.com
Thu Dec 7 15:34:58 GMT 2006


Charles Duffy wrote:
> When trying to run "bzr update" on a branch I don't have write
> permissions to, there's a long delay without any feedback while bzr sits
> and spins like so:
> 
> mkdir("/opt/build-limited-dumps/.bzr/repository/lock/pending.wvprs1r2y5qmm0jm3wke.tmp",
> 0777) = -1 EACCES (Permission denied)
> write(3, "contention on LockDir(file:///op"..., 290) = 290
> open("/opt/build-limited-dumps/.bzr/repository/lock/held/info",
> O_RDONLY) = -1 ENOENT (No such file or directory)
> write(3, "last_info: None, new info: None\n", 32) = 32
> select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
> open("/dev/urandom", O_RDONLY)          = 4
> read(4, "4\362)a\356\315\225}\366\35\375 at K\267\250]:I\263#", 20) = 20
> close(4)                                = 0
> mkdir("/opt/build-limited-dumps/.bzr/repository/lock/pending.gq5pmp5hut1s33olm1zz.tmp",
> 0777) = -1 EACCES (Permission denied)

> In this case (where the lock directory is owned by someone else), we're
> *never* going to be able to write to it; perhaps we should do some check
> to make sure we're ever going to be able to succeed.
> 
> (Actually, is -EACCES on creating a randomly-named directory an expected
> failure case even when there's lock contention? Maybe we should just be
> failing earlier; I'd expect there to be an error on the rename, not the
> create).

This seems to have the same root bug as Alexander's comment 'push over
sftp hangs when no room on remote location'. You can read my comments
over there to see if we have a reasonable way to fix it. At least to
have bzr fail faster than after 5 minutes.

John
=:->

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20061207/70a26b8a/attachment.pgp 


More information about the bazaar mailing list