-
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-21452: Retain the watchdog only on dict_sys.mutex, for performance
Most hangs seem to involve dict_sys.mutex. While holding lock_sys.mutex we rarely acquire any buffer pool page latches, which are a frequent source of potential hangs.
- Loading branch information
Showing
6 changed files
with
30 additions
and
148 deletions.
There are no files selected for viewing
33 changes: 11 additions & 22 deletions
33
mysql-test/suite/sys_vars/r/innodb_fatal_semaphore_wait_threshold.result
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 |
---|---|---|
@@ -1,25 +1,14 @@ | ||
connect con1,localhost,root,,; | ||
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB; | ||
SET DEBUG_SYNC='create_table SIGNAL stuck WAIT_FOR ever'; | ||
CREATE TABLE t2 (a INT PRIMARY KEY) ENGINE=InnoDB; | ||
connect con2,localhost,root,,; | ||
drop table if exists t1; | ||
connection con1; | ||
create table t1 (id integer, x integer) engine = InnoDB; | ||
insert into t1 values(0, 0); | ||
set DEBUG_DBUG='+d,fatal-semaphore-timeout'; | ||
set autocommit=0; | ||
# Sending query on con1, | ||
# the session will hold lock table mutex and sleep | ||
SELECT * from t1 where id = 0 FOR UPDATE; | ||
connection con2; | ||
set autocommit=0; | ||
# Sending query on con2, | ||
# the session will be blocked on the lock table mutex and | ||
# thus be put into sync arry | ||
SELECT * from t1 where id = 0 FOR UPDATE; | ||
SET DEBUG_SYNC='now WAIT_FOR stuck'; | ||
FLUSH TABLES; | ||
SELECT * FROM t1; | ||
connection default; | ||
# Waitting for mysqld to crash | ||
# Mysqld crash was detected | ||
# Waitting for reconnect after mysqld restarts | ||
# Reconnected after mysqld was successfully restarted | ||
# Cleaning up before exit | ||
drop table if exists t1; | ||
# Clean exit | ||
# Waiting for mariadbd to crash | ||
# Crash was detected | ||
DROP TABLE t1, t2; | ||
Warnings: | ||
Warning 1932 Table 'test.t2' doesn't exist in engine |
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
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