mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-4710 Merge Performance Schema test cases from MySQL 5.6.10
Merged all perfschema tests, except for the following: perfschema.part_table_io perfschema.binlog_mix perfschema.binlog_row perfschema.binlog_stmt perfschema.statement_digest_consumers perfschema.statement_digest privilege.inc privilege.result
This commit is contained in:
@ -186,10 +186,45 @@ call dump_all();
|
||||
--connection default
|
||||
|
||||
--disconnect con4a
|
||||
|
||||
# Wait for the disconnect to complete
|
||||
let $wait_condition=
|
||||
select count(*) = 5 from performance_schema.threads
|
||||
where `TYPE`='FOREGROUND' and PROCESSLIST_USER like 'user%';
|
||||
--source include/wait_condition.inc
|
||||
|
||||
--disconnect con4b
|
||||
|
||||
# Wait for the disconnect to complete
|
||||
let $wait_condition=
|
||||
select count(*) = 4 from performance_schema.threads
|
||||
where `TYPE`='FOREGROUND' and PROCESSLIST_USER like 'user%';
|
||||
--source include/wait_condition.inc
|
||||
|
||||
--disconnect con4c
|
||||
|
||||
# Wait for the disconnect to complete
|
||||
let $wait_condition=
|
||||
select count(*) = 3 from performance_schema.threads
|
||||
where `TYPE`='FOREGROUND' and PROCESSLIST_USER like 'user%';
|
||||
--source include/wait_condition.inc
|
||||
|
||||
--disconnect con5a
|
||||
|
||||
# Wait for the disconnect to complete
|
||||
let $wait_condition=
|
||||
select count(*) = 2 from performance_schema.threads
|
||||
where `TYPE`='FOREGROUND' and PROCESSLIST_USER like 'user%';
|
||||
--source include/wait_condition.inc
|
||||
|
||||
--disconnect con5b
|
||||
|
||||
# Wait for the disconnect to complete
|
||||
let $wait_condition=
|
||||
select count(*) = 1 from performance_schema.threads
|
||||
where `TYPE`='FOREGROUND' and PROCESSLIST_USER like 'user%';
|
||||
--source include/wait_condition.inc
|
||||
|
||||
--disconnect con5c
|
||||
|
||||
# Wait for the disconnect to complete
|
||||
|
@ -80,6 +80,12 @@ echo "================== con1 marker ==================";
|
||||
|
||||
--connection default
|
||||
|
||||
# Wait for the payload to complete
|
||||
let $wait_condition=
|
||||
select count(*) = 1 from performance_schema.events_waits_current
|
||||
where EVENT_NAME= 'idle';
|
||||
--source include/wait_condition.inc
|
||||
|
||||
echo "================== Step 3 ==================";
|
||||
call dump_thread();
|
||||
execute dump_waits_account;
|
||||
@ -148,6 +154,12 @@ echo "================== con2 marker ==================";
|
||||
|
||||
--connection default
|
||||
|
||||
# Wait for the payload to complete
|
||||
let $wait_condition=
|
||||
select count(*) = 2 from performance_schema.events_waits_current
|
||||
where EVENT_NAME= 'idle';
|
||||
--source include/wait_condition.inc
|
||||
|
||||
echo "================== Step 5 ==================";
|
||||
call dump_thread();
|
||||
execute dump_waits_account;
|
||||
@ -212,6 +224,12 @@ echo "================== con3 marker ==================";
|
||||
|
||||
--connection default
|
||||
|
||||
# Wait for the payload to complete
|
||||
let $wait_condition=
|
||||
select count(*) = 3 from performance_schema.events_waits_current
|
||||
where EVENT_NAME= 'idle';
|
||||
--source include/wait_condition.inc
|
||||
|
||||
echo "================== Step 7 ==================";
|
||||
call dump_thread();
|
||||
execute dump_waits_account;
|
||||
@ -276,6 +294,12 @@ echo "================== con4 marker ==================";
|
||||
|
||||
--connection default
|
||||
|
||||
# Wait for the payload to complete
|
||||
let $wait_condition=
|
||||
select count(*) = 4 from performance_schema.events_waits_current
|
||||
where EVENT_NAME= 'idle';
|
||||
--source include/wait_condition.inc
|
||||
|
||||
echo "================== Step 9 ==================";
|
||||
call dump_thread();
|
||||
execute dump_waits_account;
|
||||
|
@ -111,7 +111,8 @@ update performance_schema.setup_instruments set enabled='YES', timed='YES'
|
||||
where name in ('wait/synch/mutex/sql/LOCK_connection_count',
|
||||
'wait/synch/mutex/sql/LOCK_user_locks',
|
||||
'wait/synch/rwlock/sql/LOCK_grant',
|
||||
'wait/io/file/sql/query_log');
|
||||
'wait/io/file/sql/query_log',
|
||||
'idle');
|
||||
|
||||
update performance_schema.setup_instruments set enabled='YES', timed='YES'
|
||||
where name in ('stage/sql/init',
|
||||
|
@ -13,3 +13,4 @@ show status like "%performance_schema%";
|
||||
# Note that this output is very dependent on the platform.
|
||||
|
||||
show engine performance_schema status;
|
||||
|
||||
|
@ -48,17 +48,10 @@ execute dump_objects_summary;
|
||||
#
|
||||
|
||||
connect (con1, localhost, user1, , );
|
||||
|
||||
echo "================== con1 connected ==================";
|
||||
select concat(current_user(), " is connected") as status;
|
||||
|
||||
--connection default
|
||||
|
||||
# Wait for the connect to complete
|
||||
let $wait_condition=
|
||||
select count(*) = 1 from performance_schema.threads
|
||||
where `TYPE`='FOREGROUND' and PROCESSLIST_USER= 'user1';
|
||||
--source include/wait_condition.inc
|
||||
|
||||
echo "================== Step 2 ==================";
|
||||
call dump_thread();
|
||||
execute dump_waits_account;
|
||||
@ -116,17 +109,10 @@ execute dump_objects_summary;
|
||||
# select PROCESSLIST_USER, PROCESSLIST_HOST, INSTRUMENTED from performance_schema.threads;
|
||||
|
||||
connect (con2, localhost, user2, , );
|
||||
|
||||
echo "================== con2 connected ==================";
|
||||
select concat(current_user(), " is connected") as status;
|
||||
|
||||
--connection default
|
||||
|
||||
# Wait for the connect to complete
|
||||
let $wait_condition=
|
||||
select count(*) = 1 from performance_schema.threads
|
||||
where `TYPE`='FOREGROUND' and PROCESSLIST_USER= 'user2';
|
||||
--source include/wait_condition.inc
|
||||
|
||||
echo "================== Step 4 ==================";
|
||||
call dump_thread();
|
||||
execute dump_waits_account;
|
||||
@ -180,17 +166,10 @@ execute dump_waits_table_lock;
|
||||
execute dump_objects_summary;
|
||||
|
||||
connect (con3, localhost, user3, , );
|
||||
|
||||
echo "================== con3 connected ==================";
|
||||
select concat(current_user(), " is connected") as status;
|
||||
|
||||
--connection default
|
||||
|
||||
# Wait for the connect to complete
|
||||
let $wait_condition=
|
||||
select count(*) = 1 from performance_schema.threads
|
||||
where `TYPE`='FOREGROUND' and PROCESSLIST_USER= 'user3';
|
||||
--source include/wait_condition.inc
|
||||
|
||||
echo "================== Step 6 ==================";
|
||||
call dump_thread();
|
||||
execute dump_waits_account;
|
||||
@ -244,17 +223,10 @@ execute dump_waits_table_lock;
|
||||
execute dump_objects_summary;
|
||||
|
||||
connect (con4, localhost, user4, , );
|
||||
|
||||
echo "================== con4 connected ==================";
|
||||
select concat(current_user(), " is connected") as status;
|
||||
|
||||
--connection default
|
||||
|
||||
# Wait for the connect to complete
|
||||
let $wait_condition=
|
||||
select count(*) = 1 from performance_schema.threads
|
||||
where `TYPE`='FOREGROUND' and PROCESSLIST_USER= 'user4';
|
||||
--source include/wait_condition.inc
|
||||
|
||||
echo "================== Step 8 ==================";
|
||||
call dump_thread();
|
||||
execute dump_waits_account;
|
||||
|
Reference in New Issue
Block a user