]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Explicitly close requests obj in SolidFire Driver
authorJohn Griffith <john.griffith8@gmail.com>
Thu, 13 Nov 2014 14:43:13 +0000 (07:43 -0700)
committerJohn Griffith <john.griffith8@gmail.com>
Thu, 13 Nov 2014 14:58:56 +0000 (07:58 -0700)
commit9a2156c3d5b67e551f29f214c75b9daee0d0035e
treef4b16d10a3b448003f4ecdc6163db61f9874ab99
parent3e36fb9666cf3d8fad73b2f7274f272588303718
Explicitly close requests obj in SolidFire Driver

Currently we're not explicitly returning requests
connection objects back to the ConnectionPool when
we're done with them.  For most cases this isn't a
problem, however if we start adding higher and higher
concurrent actions the internal Connection Pool management
doesn't keep up.

This patch just adds an explicit close of the requests
connection after we're done with it to keep the ConnectionPool
as full as possible and avoid any resource issues that could
occur during heavy concurrent usage.

Change-Id: Ib074ca15286060d2aa11cdc66e74be1b8eed3c93
cinder/volume/drivers/solidfire.py