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 <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami
2026-02-22 01:42:42 +09:00
parent 1af9fcecab
commit 499bded13f

View File

@@ -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