Re: [openstack-dev] [cinder] [oslo] MySQL connection shared between green threads concurrently

2015-02-17 Thread Mike Bayer
Mike Bayer wrote: > > > Doug Hellmann wrote: > >>> My question is then how is it that such an architecture would be >>> possible, >>> that Cinder’s service starts up without greenlets yet allows >>> greenlet-based >>> requests to come in before this critical task is complete? Shouldn’t the

Re: [openstack-dev] [cinder] [oslo] MySQL connection shared between green threads concurrently

2015-02-17 Thread Mike Bayer
Doug Hellmann wrote: >> My question is then how is it that such an architecture would be >> possible, >> that Cinder’s service starts up without greenlets yet allows >> greenlet-based >> requests to come in before this critical task is complete? Shouldn’t the >> various oslo systems be providin

Re: [openstack-dev] [cinder] [oslo] MySQL connection shared between green threads concurrently

2015-02-17 Thread Doug Hellmann
On Tue, Feb 17, 2015, at 11:17 AM, Mike Bayer wrote: > > > Doug Hellmann wrote: > > >> > >> So I’m not really sure what’s going on here. Cinder seems to have some > >> openstack greenlet code of its own in > >> cinder/openstack/common/threadgroup.py, I don’t know the purpose of this > >> co

Re: [openstack-dev] [cinder] [oslo] MySQL connection shared between green threads concurrently

2015-02-17 Thread Mike Bayer
Mike Bayer wrote: > > I haven’t confirmed this yet today but based on some greenlet research as > well as things I observed with PDB yesterday, my suspicion is that Cinder’s > startup code runs in a traditional thread, at the same time the service is > allowing connections to come in via green

Re: [openstack-dev] [cinder] [oslo] MySQL connection shared between green threads concurrently

2015-02-17 Thread Mike Bayer
Doug Hellmann wrote: >> >> So I’m not really sure what’s going on here. Cinder seems to have some >> openstack greenlet code of its own in >> cinder/openstack/common/threadgroup.py, I don’t know the purpose of this >> code. SQLAlchemy’s connection pool has been tested a lot with eventlet >>

Re: [openstack-dev] [cinder] [oslo] MySQL connection shared between green threads concurrently

2015-02-17 Thread Doug Hellmann
On Mon, Feb 16, 2015, at 07:50 PM, Mike Bayer wrote: > hi all - > > I’ve been researching this cinder issue > https://bugs.launchpad.net/cinder/+bug/1417018 and I’ve found something > concerning. > > Basically there’s a race condition here which is occurring because a > single MySQL connection

[openstack-dev] [cinder] [oslo] MySQL connection shared between green threads concurrently

2015-02-16 Thread Mike Bayer
hi all - I’ve been researching this cinder issue https://bugs.launchpad.net/cinder/+bug/1417018 and I’ve found something concerning. Basically there’s a race condition here which is occurring because a single MySQL connection is shared between two green threads. This occurs while Cinder is d