MDEV-17748 innodb.alter_inplace_perfschema fails in buildbot with wrong result

- Changed the performance schema query which gives sampling with event
counting. It should fix the issue.
parent 0c20b247
select count_star into @init_count from performance_schema.events_waits_summary_global_by_event_name WHERE event_name LIKE '%wait%io%file%innodb%innodb_temp_file%';
connect ddl, localhost, root,,; connect ddl, localhost, root,,;
update performance_schema.setup_instruments set enabled='yes'; update performance_schema.setup_instruments set enabled='yes';
update performance_schema.setup_consumers set enabled='yes'; update performance_schema.setup_consumers set enabled='yes';
...@@ -8,10 +9,10 @@ SET DEBUG_SYNC = 'row_log_apply_before SIGNAL go WAIT_FOR gone'; ...@@ -8,10 +9,10 @@ SET DEBUG_SYNC = 'row_log_apply_before SIGNAL go WAIT_FOR gone';
ALTER TABLE t1 ADD INDEX(b), ALGORITHM=INPLACE; ALTER TABLE t1 ADD INDEX(b), ALGORITHM=INPLACE;
connection default; connection default;
SET DEBUG_SYNC = 'now WAIT_FOR go'; SET DEBUG_SYNC = 'now WAIT_FOR go';
SELECT DISTINCT object_name FROM performance_schema.events_waits_history_long select count_star into @final_count from performance_schema.events_waits_summary_global_by_event_name WHERE event_name LIKE '%wait%io%file%innodb%innodb_temp_file%';
WHERE event_name LIKE '%wait%io%file%innodb%innodb_temp_file%'; SELECT @final_count - @init_count;
object_name @final_count - @init_count
tmp/Innodb Merge Temp File 11
SET DEBUG_SYNC = 'now SIGNAL gone'; SET DEBUG_SYNC = 'now SIGNAL gone';
connection ddl; connection ddl;
disconnect ddl; disconnect ddl;
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
--source include/have_debug_sync.inc --source include/have_debug_sync.inc
--source include/not_embedded.inc --source include/not_embedded.inc
select count_star into @init_count from performance_schema.events_waits_summary_global_by_event_name WHERE event_name LIKE '%wait%io%file%innodb%innodb_temp_file%';
connect (ddl, localhost, root,,); connect (ddl, localhost, root,,);
update performance_schema.setup_instruments set enabled='yes'; update performance_schema.setup_instruments set enabled='yes';
update performance_schema.setup_consumers set enabled='yes'; update performance_schema.setup_consumers set enabled='yes';
...@@ -24,9 +25,10 @@ send ALTER TABLE t1 ADD INDEX(b), ALGORITHM=INPLACE; ...@@ -24,9 +25,10 @@ send ALTER TABLE t1 ADD INDEX(b), ALGORITHM=INPLACE;
connection default; connection default;
SET DEBUG_SYNC = 'now WAIT_FOR go'; SET DEBUG_SYNC = 'now WAIT_FOR go';
--replace_regex /.*[\\\/]tmp/tmp/
SELECT DISTINCT object_name FROM performance_schema.events_waits_history_long select count_star into @final_count from performance_schema.events_waits_summary_global_by_event_name WHERE event_name LIKE '%wait%io%file%innodb%innodb_temp_file%';
WHERE event_name LIKE '%wait%io%file%innodb%innodb_temp_file%';
SELECT @final_count - @init_count;
#--exec lsof -p `pidof mysqld` #--exec lsof -p `pidof mysqld`
SET DEBUG_SYNC = 'now SIGNAL gone'; SET DEBUG_SYNC = 'now SIGNAL gone';
......
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