sporadic failures of perfschema.statement_program_concurrency

wait until all three concurrent statements are truly completely
finished before quering P_S.

In particular "Logging slow query" stage happens after sending the
OK packet but before the statement appears in events_statements_history
This commit is contained in:
Sergei Golubchik 2022-12-24 18:53:16 +01:00
parent 5e3c948cc9
commit fce80b6ae1

View file

@ -91,7 +91,9 @@ connection con3;
--reap;
connection default;
--source include/wait_until_connected_again.inc
--let $wait_condition=select count(*)=3 from information_schema.processlist where command='sleep';
--source include/wait_condition.inc
SELECT OBJECT_TYPE, OBJECT_SCHEMA, OBJECT_NAME, COUNT_STAR, COUNT_STATEMENTS
FROM performance_schema.events_statements_summary_by_program