-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-22458: Server with WSREP hangs after INSERT, wrong usage of mute…
…x 'LOCK_thd_data' and 'share->intern_lock' / 'lock->mutex' Add `find_thread_by_id_with_thd_data_lock` which will be used only when killing thread. This version needs to take `thd->LOCK_thd_data` lock.
- Loading branch information
mkaruza
authored and
Jan Lindström
committed
Jul 24, 2020
1 parent
6b8b7b1
commit 4b4372a
Showing
3 changed files
with
57 additions
and
2 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,10 @@ | ||
connection node_2; | ||
connection node_1; | ||
CREATE TABLE t1 (a INT); | ||
connect con1,localhost,root,,test; | ||
INSERT INTO t1 VALUES (1),(2),(3),(4); | ||
SHOW EXPLAIN FOR $con1; | ||
ERROR HY000: Target is not running an EXPLAINable command | ||
connection con1; | ||
INSERT INTO t1 VALUES (5),(6),(7),(8); | ||
DROP TABLE t1; |
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,21 @@ | ||
# MDEV-22458 | ||
# | ||
# When running SHOW command, thread lock `LOCK_thd_data` should not be taken. | ||
# Lock will be taken only when we are killing thread | ||
# | ||
|
||
--source include/galera_cluster.inc | ||
CREATE TABLE t1 (a INT); | ||
|
||
--connect (con1,localhost,root,,test) | ||
--let $con1 = `SELECT CONNECTION_ID()` | ||
|
||
INSERT INTO t1 VALUES (1),(2),(3),(4); | ||
|
||
--error ER_TARGET_NOT_EXPLAINABLE | ||
EVALP SHOW EXPLAIN FOR $con1; | ||
|
||
--connection con1 | ||
INSERT INTO t1 VALUES (5),(6),(7),(8); | ||
|
||
DROP TABLE t1; |
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