From 499bded13f1415b0b79283075d86fa8ee9bb3283 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sun, 22 Feb 2026 01:42:42 +0900 Subject: [PATCH] Add Gelera specific error code for connection retries Import the following galera specific error code to handle connection retries, from the latest list of codes used by retry filter in oslo.db. - 1024: WSREP has not yet prepared node for application use [1] - 1927: Connection was killed [2] [1] 45079050f1d54c3be15ce128487f79c9490be77c [2] 34f9a3ac7a56883f8a2cd2a9a93bc42e5194bc1e Change-Id: Ic5851122df20d91081f13c10f68ae7f5e00e6b26 Signed-off-by: Takashi Kajinami --- taskflow/persistence/backends/impl_sqlalchemy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/taskflow/persistence/backends/impl_sqlalchemy.py b/taskflow/persistence/backends/impl_sqlalchemy.py index e0f85f89e..627494e01 100644 --- a/taskflow/persistence/backends/impl_sqlalchemy.py +++ b/taskflow/persistence/backends/impl_sqlalchemy.py @@ -47,6 +47,8 @@ LOG = logging.getLogger(__name__) # See: http://dev.mysql.com/doc/refman/5.0/en/error-messages-client.html MY_SQL_CONN_ERRORS = ( + # WSREP has not yet prepared node for application use + '1047', # Lost connection to MySQL server at '%s', system error: %d '2006', # Can't connect to MySQL server on '%s' (%d) @@ -55,6 +57,8 @@ MY_SQL_CONN_ERRORS = ( '2002', ) MY_SQL_GONE_WAY_AWAY_ERRORS = ( + # Connection was killed + '1927', # Lost connection to MySQL server at '%s', system error: %d '2006', # Lost connection to MySQL server during query