Comment 3 for bug 954971

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/5552
Committed: http://github.com/openstack/glance/commit/3f462fbf9a2b9cfe6ac39d87fe5b327ba82e9dac
Submitter: Jenkins
Branch: master

commit 3f462fbf9a2b9cfe6ac39d87fe5b327ba82e9dac
Author: Unmesh Gurjar <email address hidden>
Date: Tue Mar 20 12:07:39 2012 +0530

    Fixed db conn recovery issue. Fixes bug 954971.

    This implementation wraps the db method calls and retries the method if an attempt failed due to db connectivity issues. Defines 2 new configuration parameters viz sql_max_retries and sql_retry_interval (values default to 10 and 1 respectively).
    This implementation does not have any overhead in the normal case, as opposed to MySQLPingListener implementation, which does a 'select 1' query every time a connection is checkout from the pool.

    Change-Id: I24240f22bca445b9ab76a1594631b5eaca393b4d