mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge 10.6 into 10.11
This commit is contained in:
18
mysql-test/suite/perfschema/t/misc_session_status.test
Normal file
18
mysql-test/suite/perfschema/t/misc_session_status.test
Normal file
@ -0,0 +1,18 @@
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_perfschema.inc
|
||||
--echo #
|
||||
--echo # MDEV-33150 double-locking of LOCK_thd_kill in performance_schema.session_status
|
||||
--echo #
|
||||
source include/have_innodb.inc;
|
||||
set @old_innodb_io_capacity=@@global.innodb_io_capacity;
|
||||
set @old_innodb_io_capacity_max=@@global.innodb_io_capacity_max;
|
||||
select * from performance_schema.session_status limit 0; # discover the table
|
||||
set max_session_mem_used=32768;
|
||||
--error ER_OPTION_PREVENTS_STATEMENT
|
||||
# this used to crash, when OOM happened under LOCK_thd_kill
|
||||
select * from performance_schema.session_status;
|
||||
# this used to cause mutex lock order violation when OOM happened under LOCK_global_system_variables
|
||||
set global innodb_io_capacity_max=100;
|
||||
set max_session_mem_used=default;
|
||||
set global innodb_io_capacity=@old_innodb_io_capacity;
|
||||
set global innodb_io_capacity_max=@old_innodb_io_capacity_max;
|
@ -81,5 +81,11 @@ select NAME, TYPE, PROCESSLIST_COMMAND, PROCESSLIST_STATE
|
||||
from performance_schema.threads
|
||||
where PROCESSLIST_ID = @slave_sql_pid;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-33031 Assertion failure upon reading from performance schema with binlog enabled
|
||||
--echo #
|
||||
select variable_name, variable_value from performance_schema.status_by_thread
|
||||
where variable_name like '%impossible%'; # should not crash
|
||||
|
||||
--source include/rpl_end.inc
|
||||
|
||||
|
Reference in New Issue
Block a user