DBConnectionError can be thrown if the connection
to the database gets closed (e.g. sql restart or
network connectivity failure). This should be part
of our standard list of exceptions to retry so we
are resillient to intermittent connectivity issues.
The olso db wrap db retry decorator has this option
as well[1] but we can't use it because our logic to
detect retriable errors in MultipleException types.
Reviewed: https:/ /review. openstack. org/346288 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=3213dd884e1 5d1e2b2209aed3a ed82cd0213a677
Committed: https:/
Submitter: Jenkins
Branch: master
commit 3213dd884e15d1e 2b2209aed3aed82 cd0213a677
Author: Kevin Benton <email address hidden>
Date: Fri Jul 22 09:56:30 2016 -0700
Mark DBConnectionError as retriable
DBConnectio nError can be thrown if the connection
to the database gets closed (e.g. sql restart or
network connectivity failure). This should be part
of our standard list of exceptions to retry so we
are resillient to intermittent connectivity issues.
The olso db wrap db retry decorator has this option
as well[1] but we can't use it because our logic to
detect retriable errors in MultipleException types.
1. https:/ /github. com/openstack/ oslo.db/ blob/a794790880 29e4fa51def91cb 36bc652356462b6 /oslo_db/ api.py# L123
Partial-Bug: #1596075 56667b9d1e40f07 f2b5bc8d805
Change-Id: I26423e306173d9