Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
MDEV-25389 : Assertion `!is_thread_specific || (mysqld_server_initial…
…ized && 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.
- Loading branch information
Jan Lindström
committed
Oct 9, 2022
1 parent
e8acec8
commit 0908a04
Showing
6 changed files
with
56 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| connection node_2; | ||
| connection node_1; | ||
| connection node_2; | ||
| call mtr.add_suppression("WSREP: Failed to create/initialize system thread"); | ||
| SET GLOBAL debug_dbug='+d,simulate_failed_connection_1'; | ||
| SET GLOBAL wsrep_slave_threads=2; | ||
| ERROR HY000: Incorrect arguments to SET | ||
| SELECT @@wsrep_slave_threads; | ||
| @@wsrep_slave_threads | ||
| 1 | ||
| SET GLOBAL debug_dbug=''; | ||
| SET GLOBAL wsrep_slave_threads=1; | ||
| SELECT @@wsrep_slave_threads; | ||
| @@wsrep_slave_threads | ||
| 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters