1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-08 00:28:29 +03:00
Files
mariadb/mysql-test/suite/perfschema/t/misc_session_status.test
Sergei Golubchik 7888b6c0d5 make max_session_mem_used tests more reliable
they're very fragile by nature, but let's at least move them
into one file with msan/embedded/ps/32-bit all disabled to
have the memory usage more predictable.

And remove these restrictions from other test files.
2025-10-25 18:07:48 +02:00

27 lines
1.1 KiB
Plaintext

--source include/not_embedded.inc
--source include/have_perfschema.inc
--source include/not_msan.inc
--source include/not_valgrind.inc
# This does not crash on 32 bit because of less memory used
--source include/have_64bit.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;
--disable_result_log
--error 0,ER_OPTION_PREVENTS_STATEMENT
# this used to crash, when OOM happened under LOCK_thd_kill
select * from performance_schema.session_status;
--enable_result_log
# this used to cause mutex lock order violation when OOM happened under LOCK_global_system_variables
--disable_ps_protocol # different memory requirements
set global innodb_io_capacity_max=100;
set max_session_mem_used=default;
--enable_ps_protocol
set global innodb_io_capacity=@old_innodb_io_capacity;
set global innodb_io_capacity_max=@old_innodb_io_capacity_max;