From 85954dd864b794da81c1346674889764c10aa6fc Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Fri, 16 Feb 2024 10:15:01 +0100 Subject: [PATCH] retry.Retryable(): re-try MySQL error 1047 for a "not yet prepared node" During start a Galera cluster complains with "WSREP has not yet prepared node for application use". But the error code, 1047, stands for "Unknown command". So re-try only a "not yet prepared node", but not an "Unknown command". --- pkg/retry/retry.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/retry/retry.go b/pkg/retry/retry.go index da73943d5..c811fe59a 100644 --- a/pkg/retry/retry.go +++ b/pkg/retry/retry.go @@ -150,6 +150,8 @@ func Retryable(err error) bool { // 1213: Deadlock found when trying to get lock // 2006: MySQL server has gone away return true + case 1047: // Unknown command + return strings.Contains(e.Message, "not yet prepared node for application use") default: return false }