From 3d4b80b5e45b3d76da8779c9e04e3eb8ed964410 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Thu, 24 Dec 2020 12:19:57 +0000 Subject: [PATCH] Honor 'wsrep_sst_donor_rejects_queries' avoiding setting a DONOR node offline during a SST --- lib/MySQL_Monitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MySQL_Monitor.cpp b/lib/MySQL_Monitor.cpp index 269e30339..fd359fef5 100644 --- a/lib/MySQL_Monitor.cpp +++ b/lib/MySQL_Monitor.cpp @@ -1966,7 +1966,7 @@ __exit_monitor_galera_thread: } } else { if (fields) { // if we didn't get any error, but fileds is NULL, we are likely hitting bug #1994 - if (primary_partition == false || wsrep_desync == true || wsrep_local_state!=4) { + if (primary_partition == false || wsrep_desync == true || (wsrep_local_state!=4 && (wsrep_local_state != 2 || wsrep_sst_donor_rejects_queries))) { if (primary_partition == false) { MyHGM->update_galera_set_offline(mmsd->hostname, mmsd->port, mmsd->writer_hostgroup, (char *)"primary_partition=NO"); } else {