diff options
author | Roman Podoliaka <rpodolyaka@mirantis.com> | 2014-10-01 16:10:20 +0300 |
---|---|---|
committer | Ihar Hrachyshka <ihrachys@redhat.com> | 2014-10-07 21:28:32 +0000 |
commit | b09920f26c3b6f93720cec8186bbcc838a727c97 (patch) | |
tree | 759ea1560cc59a309f858d06249afe621d3f75d2 /test-requirements.txt | |
parent | 0bb1e236daae53a3f5b4b88761d7b19f7961ed6c (diff) | |
download | oslo-db-b09920f26c3b6f93720cec8186bbcc838a727c97.tar.gz |
Ensure create_engine() retries the initial connection test
Before return create_engine() tests the connectivity to a DB. At this
moment a DB might be unavailable for some reason, in which case
create_engine() retries a few times. When used with MySQL, we didn't
actually retry, but instead failed on the first connectivity error
when trying to get the value of sql_mode session variable.
Closes-Bug: #1376211
Co-Authored-By: Mike Bayer <mike_mp@zzzcomputing.com>
Change-Id: I14e25cfe1ed51b0d51a94e491b7267f26e42d34e
(cherry picked from commit 01a54cc5cc43c8b497007dbb07c78dacd03c1ed2)
Diffstat (limited to 'test-requirements.txt')
0 files changed, 0 insertions, 0 deletions