summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorNirbhay Choubey <nirbhay@mariadb.com>2016-06-12 19:28:56 -0400
committerNirbhay Choubey <nirbhay@mariadb.com>2016-06-12 19:28:56 -0400
commit868c2ceb013e06c29ba37d4634f2d543b96539aa (patch)
tree9f4fb94a19183959d9e0cc58e3c7ca5fdbaa2ac6 /sql
parentc0238be6cfaaf17c7c3a6f3fc59937cc13cc00be (diff)
downloadmariadb-git-868c2ceb013e06c29ba37d4634f2d543b96539aa.tar.gz
MDEV-9083: Slave IO thread does not handle autoreconnect to restarting Galera Cluster node
Chery-picked commits from codership/mysql-wsrep. MW-284: Slave I/O retry on ER_COM_UNKNOWN_ERROR Slave would treat ER_COM_UNKNOWN_ERROR as fatal error and stop. The fix here is to treat it as a network error and rely on the built-in mechanism to retry. MW-284: Add an MTR test
Diffstat (limited to 'sql')
-rw-r--r--sql/slave.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/slave.cc b/sql/slave.cc
index 4bc4cd4ab83..e9db77a0924 100644
--- a/sql/slave.cc
+++ b/sql/slave.cc
@@ -1361,6 +1361,10 @@ bool is_network_error(uint errorno)
errorno == ER_NET_READ_INTERRUPTED ||
errorno == ER_SERVER_SHUTDOWN)
return TRUE;
+#ifdef WITH_WSREP
+ if (errorno == ER_UNKNOWN_COM_ERROR)
+ return TRUE;
+#endif
return FALSE;
}