summaryrefslogtreecommitdiff
path: root/mysql-test/suite/galera/t/MDEV-25389.test
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2022-10-06 11:08:09 +0300
committerJan Lindström <jan.lindstrom@mariadb.com>2022-10-09 10:09:47 +0300
commit0908a049f80f4024d7e2c8cd9082ca4cfca47b93 (patch)
tree5272a708b0dc2585bb0222785c9b09ba634e9643 /mysql-test/suite/galera/t/MDEV-25389.test
parente8acec89741777ebaf46b499fdfe191ad88c3a95 (diff)
downloadmariadb-git-0908a049f80f4024d7e2c8cd9082ca4cfca47b93.tar.gz
MDEV-25389 : Assertion `!is_thread_specific || (mysqld_server_initialized && thd)' failed in void my_malloc_size_cb_func(long long int, my_bool)
If wsrep slave thread creation fails for some reason we need to handle this error correctly and set actual running slave threads accordingly.
Diffstat (limited to 'mysql-test/suite/galera/t/MDEV-25389.test')
-rw-r--r--mysql-test/suite/galera/t/MDEV-25389.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/suite/galera/t/MDEV-25389.test b/mysql-test/suite/galera/t/MDEV-25389.test
new file mode 100644
index 00000000000..dcb21ee6136
--- /dev/null
+++ b/mysql-test/suite/galera/t/MDEV-25389.test
@@ -0,0 +1,13 @@
+--source include/galera_cluster.inc
+--source include/have_debug.inc
+--source include/have_debug_sync.inc
+
+--connection node_2
+call mtr.add_suppression("WSREP: Failed to create/initialize system thread");
+SET GLOBAL debug_dbug='+d,simulate_failed_connection_1';
+--error ER_WRONG_ARGUMENTS
+SET GLOBAL wsrep_slave_threads=2;
+SELECT @@wsrep_slave_threads;
+SET GLOBAL debug_dbug='';
+SET GLOBAL wsrep_slave_threads=1;
+SELECT @@wsrep_slave_threads;