Re: [openstack-dev] Question about locking

2013-07-02 Thread Vishvananda Ishaya
On Jul 2, 2013, at 1:49 AM, Rosa, Andrea (HP Cloud Services) andrea.r...@hp.com wrote: Hi Vish, Were other commands working on the compute node? It seems much more likely that the node had a hung connection to rabbit. If you are not using tcp keepalives, a network hiccup (or failover)

Re: [openstack-dev] Question about locking

2013-07-01 Thread Vishvananda Ishaya
On Jul 1, 2013, at 2:27 AM, Rosa, Andrea (HP Cloud Services) andrea.r...@hp.com wrote: Hi Ben, Thank you very much for your reply. That function is using the synchronized decorator, which means that it's wrapped by a semaphore context. As I understand it (and someone correct me if I'm

[openstack-dev] Question about locking

2013-06-26 Thread Rosa, Andrea (HP Cloud Services)
Hi all, What happens if a greenthread, after acquiring a lock (not external), it dies? For example: A thread is performing the do_terminate_instance, it has the lock and before terminating the process it dies, what happens at the lock? Is that released in some way? If not I think that all