Re: [openstack-dev] [oslo] Issues with POSIX semaphores and other locks in lockutils

2014-08-21 Thread Doug Hellmann
+1 to going back to file locks, too. We can keep the current scheme under a different API in the module for anyone that wants to use it explicitly, but I think at this point it’s better to have something that works reliably when configured properly as the default. I hope we can switch that to t

Re: [openstack-dev] [oslo] Issues with POSIX semaphores and other locks in lockutils

2014-08-21 Thread Julien Danjou
On Wed, Aug 20 2014, Vishvananda Ishaya wrote: > This may be slightly off-topic but it is worth mentioning that the use of > threading.Lock[1] > which was included to make the locks thread safe seems to be leading to a > deadlock in eventlet[2]. > It seems like we have rewritten this too many ti

Re: [openstack-dev] [oslo] Issues with POSIX semaphores and other locks in lockutils

2014-08-20 Thread Davanum Srinivas
Ben, +1 to the plan you outlined. -- dims On Wed, Aug 20, 2014 at 4:13 PM, Ben Nemec wrote: > On 08/20/2014 01:03 PM, Vishvananda Ishaya wrote: >> This may be slightly off-topic but it is worth mentioning that the use of >> threading.Lock[1] >> which was included to make the locks thread safe s

Re: [openstack-dev] [oslo] Issues with POSIX semaphores and other locks in lockutils

2014-08-20 Thread Ben Nemec
On 08/20/2014 01:03 PM, Vishvananda Ishaya wrote: > This may be slightly off-topic but it is worth mentioning that the use of > threading.Lock[1] > which was included to make the locks thread safe seems to be leading to a > deadlock in eventlet[2]. > It seems like we have rewritten this too many

Re: [openstack-dev] [oslo] Issues with POSIX semaphores and other locks in lockutils

2014-08-20 Thread Vishvananda Ishaya
This may be slightly off-topic but it is worth mentioning that the use of threading.Lock[1] which was included to make the locks thread safe seems to be leading to a deadlock in eventlet[2]. It seems like we have rewritten this too many times in order to fix minor pain points and are adding risk

Re: [openstack-dev] [oslo] Issues with POSIX semaphores and other locks in lockutils

2014-08-20 Thread Ben Nemec
On 08/20/2014 01:40 AM, Angus Lees wrote: > On Mon, 18 Aug 2014 10:05:28 PM Pádraig Brady wrote: >> On 08/18/2014 03:38 PM, Julien Danjou wrote: >>> On Thu, Aug 14 2014, Yuriy Taraday wrote: >>> >>> Hi Yuriy, >>> >>> […] >>> Looking forward to your opinions. >>> >>> This looks like a good summ

Re: [openstack-dev] [oslo] Issues with POSIX semaphores and other locks in lockutils

2014-08-19 Thread Angus Lees
On Mon, 18 Aug 2014 10:05:28 PM Pádraig Brady wrote: > On 08/18/2014 03:38 PM, Julien Danjou wrote: > > On Thu, Aug 14 2014, Yuriy Taraday wrote: > > > > Hi Yuriy, > > > > […] > > > >> Looking forward to your opinions. > > > > This looks like a good summary of the situation. > > > > I've added

Re: [openstack-dev] [oslo] Issues with POSIX semaphores and other locks in lockutils

2014-08-18 Thread Pádraig Brady
On 08/18/2014 03:38 PM, Julien Danjou wrote: > On Thu, Aug 14 2014, Yuriy Taraday wrote: > > Hi Yuriy, > > […] > >> Looking forward to your opinions. > > This looks like a good summary of the situation. > > I've added a solution E based on pthread, but didn't get very far about > it for now.

Re: [openstack-dev] [oslo] Issues with POSIX semaphores and other locks in lockutils

2014-08-18 Thread Julien Danjou
On Thu, Aug 14 2014, Yuriy Taraday wrote: Hi Yuriy, […] > Looking forward to your opinions. This looks like a good summary of the situation. I've added a solution E based on pthread, but didn't get very far about it for now. -- Julien Danjou # Free Software hacker # http://julien.danjou.info

[openstack-dev] [oslo] Issues with POSIX semaphores and other locks in lockutils

2014-08-14 Thread Yuriy Taraday
Hello. It started (for me) with a bug [1] that stated one problem with POSIX semaphores. I started implementing fix for that [2] and it appeared that there are other issues with lockutils. Discussion got spread over bug [1] and Gerrit [2] and got limited to those who get notifications on them. I'd