diff options
author | Pierre-Samuel Le Stang <pierre-samuel.le-stang@corp.ovh.com> | 2019-02-08 16:46:21 +0100 |
---|---|---|
committer | Pierre-Samuel Le Stang <pierre-samuel.le-stang@corp.ovh.com> | 2019-02-08 16:46:21 +0100 |
commit | ae227eb3b9adb430cf6aa5a4f46f846e964fff91 (patch) | |
tree | 02264ad1dc507e7bfd2b807b872a3399c92a6b86 /oslo_db/sqlalchemy | |
parent | 8c60cc113599e479a23b9428b9fe51b951776468 (diff) | |
download | oslo-db-ae227eb3b9adb430cf6aa5a4f46f846e964fff91.tar.gz |
exc_filters: fix deadlock detection for MariaDB/Galera cluster
MariasDB/Galera cluster server produces an error like:
(1213, u'Deadlock: wsrep aborted transaction')
which is currently not detected properly and, thus, not retried.
Change-Id: Ifb4a81d50e490e734e12986e51efd6bd3c339c31
Signed-off-by: Pierre-Samuel Le Stang <pierre-samuel.le-stang@corp.ovh.com>
Diffstat (limited to 'oslo_db/sqlalchemy')
-rw-r--r-- | oslo_db/sqlalchemy/exc_filters.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/oslo_db/sqlalchemy/exc_filters.py b/oslo_db/sqlalchemy/exc_filters.py index 65b0319..0144826 100644 --- a/oslo_db/sqlalchemy/exc_filters.py +++ b/oslo_db/sqlalchemy/exc_filters.py @@ -63,6 +63,8 @@ def filters(dbname, exception_type, regex): @filters("mysql", sqla_exc.InternalError, r"^.*\b1213\b.*Deadlock found.*") @filters("mysql", sqla_exc.InternalError, r"^.*\b1213\b.*detected deadlock/conflict.*") +@filters("mysql", sqla_exc.InternalError, + r"^.*\b1213\b.*Deadlock: wsrep aborted.*") @filters("postgresql", sqla_exc.OperationalError, r"^.*deadlock detected.*") @filters("postgresql", sqla_exc.DBAPIError, r"^.*deadlock detected.*") @filters("ibm_db_sa", sqla_exc.DBAPIError, r"^.*SQL0911N.*") |