exc_filters: Handle OperationalError for MariaDB/Galera
Currently InternalError is being handled for detecting MariaDB/Galera
deadlocks but recently we have seen a variant that raises
OperationalError instead. Because it's not being detected, usage of the
@retry_on_deadlock decorator is not performing retries in those cases.
This adds handling of OperationalError for detecting this deadlock.
Reviewed: https:/ /review. opendev. org/c/openstack /oslo.db/ +/913279 /opendev. org/openstack/ oslo.db/ commit/ 8e1f869910e2fee 3d567565b28b9cd 520b07bacf
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 8e1f869910e2fee 3d567565b28b9cd 520b07bacf
Author: melanie witt <email address hidden>
Date: Fri Mar 15 01:19:55 2024 +0000
exc_filters: Handle OperationalError for MariaDB/Galera
Currently InternalError is being handled for detecting MariaDB/Galera Error instead. Because it's not being detected, usage of the on_deadlock decorator is not performing retries in those cases.
deadlocks but recently we have seen a variant that raises
Operational
@retry_
This adds handling of OperationalError for detecting this deadlock.
Closes-Bug: #2057987
Change-Id: I6ff3667b35ea38 a2d3c258f810a55 eda9abe465e