[Yum-devel] locking

James Antill james.antill at redhat.com
Thu Feb 21 14:38:12 UTC 2008


On Wed, 2008-02-20 at 22:57 -0500, seth vidal wrote:
> Encountered a bug tonight that got me thinking about our locking and
> some issues.
> 
> 1. unless an app locks, explicitly, nothing in our current
> infrastructure enforces it to happen.
> 
> 2. if a user is running on their own cachedir from two different
> instances the instances will happily trample over each other and do
> 'odd' things
> 
> 3. the same is true for misbehaving root-run apps, too.
> 
> With this in mind would it be a good idea to change yum's lock mechanism
> such that:
> 
> - the global lock means "the rpmdb is locked/transaction in progress"
> - each repo cachedir had a lockfile that could be placed to keep that
> repository dir from being changed

 So I think I agree with everyone when I say automatic locking would be
awesome, but... if we try to lock each repo cachedir separately , as we
use it, can't we get deadlock due to different instances locking repo
cache dirs in a different order?
 This is esp. complicated due to the enable/disable repo. stuff we do
semi-automatically.

-- 
James Antill <james.antill at redhat.com>
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20080221/4b64b77a/attachment.pgp 


More information about the Yum-devel mailing list