Commit 50ce001a authored by Kristian Nielsen's avatar Kristian Nielsen

MDEV-13792: innodb.purge_thread_shutdown failed in buildbot with wrong result (sporadic)

Omit `state` when selecting processlist to verify which threads are running.
The state changes as threads are running (enter_state()), and this causes
sporadic test failures.
Signed-off-by: default avatarKristian Nielsen <knielsen@knielsen-hq.org>
parent 7e34bb5c
......@@ -2,32 +2,32 @@ connect con1, localhost, root;
create table t1 (a int) engine=innodb;
insert t1 values (1),(2),(3),(4);
delete from t1 where a=1;
select user,state from information_schema.processlist order by 2;
user state
select user from information_schema.processlist order by 1;
user
root
root Filling schema table
system user InnoDB purge coordinator
system user InnoDB purge worker
system user InnoDB purge worker
system user InnoDB purge worker
system user InnoDB shutdown handler
root
system user
system user
system user
system user
system user
set global debug_dbug='+d,only_kill_system_threads';
set global innodb_fast_shutdown=0;
shutdown;
connection default;
disconnect con1;
select user,state from information_schema.processlist order by 2;
user state
root Filling schema table
system user InnoDB purge coordinator
system user InnoDB purge worker
system user InnoDB purge worker
system user InnoDB purge worker
system user InnoDB slow shutdown wait
select user from information_schema.processlist order by 1;
user
root
system user
system user
system user
system user
system user
set global innodb_fast_shutdown=1;
select user,state from information_schema.processlist order by 2;
user state
root Filling schema table
select user from information_schema.processlist order by 1;
user
root
delete from t1 where a=3;
set global innodb_fast_shutdown=0;
ERROR 42000: Variable 'innodb_fast_shutdown' can't be set to the value of '0'
......
......@@ -7,7 +7,7 @@ create table t1 (a int) engine=innodb;
insert t1 values (1),(2),(3),(4);
delete from t1 where a=1;
select user,state from information_schema.processlist order by 2;
select user from information_schema.processlist order by 1;
set global debug_dbug='+d,only_kill_system_threads';
set global innodb_fast_shutdown=0;
......@@ -21,12 +21,12 @@ connection default;
disconnect con1;
sleep 5;
select user,state from information_schema.processlist order by 2;
select user from information_schema.processlist order by 1;
set global innodb_fast_shutdown=1;
let $wait_condition=select count(*) = 0 from information_schema.processlist where user='system user';
source include/wait_condition.inc;
select user,state from information_schema.processlist order by 2;
select user from information_schema.processlist order by 1;
delete from t1 where a=3;
error ER_WRONG_VALUE_FOR_VAR;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment