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.
Closes-Bug: #2057987
Change-Id: I6ff3667b35ea38a2d3c258f810a55eda9abe465e
(cherry picked from commit 8e1f869910e2fee3d567565b28b9cd520b07bacf)
Reviewed: https:/ /review. opendev. org/c/openstack /oslo.db/ +/913600 /opendev. org/openstack/ oslo.db/ commit/ 3a314786ac6f0d4 a153ad9c5adc0b2 83ef7eb7fa
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/2024.1
commit 3a314786ac6f0d4 a153ad9c5adc0b2 83ef7eb7fa
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 3d567565b28b9cd 520b07bacf)
(cherry picked from commit 8e1f869910e2fee