Hang at commit time when using sftp or bzr+ssh

Stephen AuYeung stephen at ck12.org
Fri Dec 9 16:29:17 UTC 2011


The lock was acquired and released within the bzr operation like commit, not by the caller. How do I override that and make the lock long lasting?

Thanks,
Stephen

-----Original Message-----
From: Aaron Bentley [mailto:aaron at aaronbentley.com] 
Sent: Friday, December 09, 2011 8:11 AM
To: stephen at ck12.org
Cc: bazaar at lists.canonical.com
Subject: Re: Hang at commit time when using sftp or bzr+ssh

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11-12-09 10:56 AM, Stephen AuYeung wrote:
> We have a long running process that will perform all bzr operations. I 
> believe that the lock will not be held across operations.

You can hold the lock for as long as you're comfortable with the data becoming stale.

> Will there be cached objects, e.g., the master branch object, that can 
> safely stay across locks?

Only something immutable could be cached indefinitely.  Revisions, committed file versions and signatures are immutable-- they are associated with unique identifiers rather than locations.

I don't think the master branch is immutable.  It can be changed with the bind, unbind, switch, reconfigure or configure commands, or by editing bazaar.conf, locations.conf or the relevant branch.conf.

Given that branches can be deleted, I don't believe any aspect of them is immutable.

On the other hand, if your long-running process is the sole process allowed to change the master branch, then perhaps it should hold write locks on all branches.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk7iMxYACgkQ0F+nu1YWqI0zaQCfbOhouoskFDS/FycjKJyVcSV3
OEEAnRxtpdYg1qXZRGQYtjhmdgX6LvDD
=w/Zi
-----END PGP SIGNATURE-----




More information about the bazaar mailing list