2013-06-13 20:19:32 +02:00
|
|
|
SET DEBUG_SYNC = 'dispatch_command_before_set_time WAIT_FOR do_set_time';
|
|
|
|
SELECT 1;
|
2016-03-25 20:51:22 +04:00
|
|
|
connect con1,localhost,root,,;
|
2013-06-13 20:19:32 +02:00
|
|
|
SET DEBUG_SYNC = 'fill_schema_processlist_after_unow SIGNAL do_set_time WAIT_FOR fill_schema_proceed';
|
2014-10-22 13:51:33 +02:00
|
|
|
SELECT ID, TIME,TIME_MS FROM INFORMATION_SCHEMA.PROCESSLIST WHERE CONCAT(":", ID, ":") = ":TID:";
|
2016-03-25 20:51:22 +04:00
|
|
|
connection default;
|
2013-06-13 20:19:32 +02:00
|
|
|
1
|
|
|
|
1
|
|
|
|
SET DEBUG_SYNC = 'now SIGNAL fill_schema_proceed';
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con1;
|
2014-10-22 13:51:33 +02:00
|
|
|
ID TIME TIME_MS
|
|
|
|
TID 0 0.000
|
2015-01-06 16:32:41 +01:00
|
|
|
set debug_sync='reset';
|
2016-03-25 20:51:22 +04:00
|
|
|
connection default;
|
|
|
|
connection con1;
|
2015-01-06 16:32:41 +01:00
|
|
|
SET debug_dbug="+d,sleep_inject_query_done_debug_sync";
|
2013-07-01 12:02:44 +02:00
|
|
|
select sleep(5);
|
|
|
|
sleep(5)
|
|
|
|
0
|
2016-03-25 20:51:22 +04:00
|
|
|
connection default;
|
2014-10-22 13:51:33 +02:00
|
|
|
SET DEBUG_SYNC = 'now WAIT_FOR query_done';
|
2013-07-01 12:02:44 +02:00
|
|
|
select command, time < 5 from information_schema.processlist where id != connection_id();
|
|
|
|
command time < 5
|
|
|
|
Sleep 1
|
2016-03-25 20:51:22 +04:00
|
|
|
disconnect con1;
|
|
|
|
connection default;
|
2014-01-27 12:10:53 +01:00
|
|
|
set debug_sync='reset';
|
2019-10-14 16:45:51 +02:00
|
|
|
End of 5.5 tests
|
2015-05-08 00:34:06 +04:00
|
|
|
#
|
|
|
|
# 10.1 tests
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# MDEV-7807 information_schema.processlist truncates queries with binary strings
|
|
|
|
#
|
|
|
|
SET NAMES utf8;
|
|
|
|
SELECT INFO, INFO_BINARY, 'xxx😎yyy' AS utf8mb4_string FROM INFORMATION_SCHEMA.PROCESSLIST WHERE INFO LIKE '%xxx%yyy%';
|
|
|
|
INFO SELECT INFO, INFO_BINARY, 'xxx????yyy' AS utf8mb4_string FROM INFORMATION_SCHEMA.PROCESSLIST WHERE INFO LIKE '%xxx%yyy%'
|
|
|
|
INFO_BINARY SELECT INFO, INFO_BINARY, 'xxx😎yyy' AS utf8mb4_string FROM INFORMATION_SCHEMA.PROCESSLIST WHERE INFO LIKE '%xxx%yyy%'
|
|
|
|
utf8mb4_string xxx😎yyy
|
|
|
|
#
|
|
|
|
# End of 10.1 tests
|
|
|
|
#
|
2022-03-21 16:42:58 +04:00
|
|
|
#
|
|
|
|
# Start of 10.3 tests
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# MDEV-28131 Unexpected warning while selecting from information_schema.processlist
|
|
|
|
#
|
|
|
|
connect conn1, localhost, root,,;
|
|
|
|
connection conn1;
|
|
|
|
SELECT SLEEP(1000);
|
|
|
|
connection default;
|
|
|
|
SELECT progress FROM information_schema.processlist WHERE info='SELECT SLEEP(1000)';
|
|
|
|
progress
|
|
|
|
0.000
|
|
|
|
connection conn1;
|
|
|
|
Got one of the listed errors
|
|
|
|
connection default;
|
|
|
|
disconnect conn1;
|
|
|
|
#
|
|
|
|
# End of 10.3 tests
|
|
|
|
#
|