1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fix random test failures in testcase perfschema.mdl_func

The test case can get extra rows in its output from table
performance_schema.table_handles, left there by an earlier test case (for
example main.long_unique_delayed). So force a server restart at the
beginning of the test.

Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
This commit is contained in:
Kristian Nielsen
2023-11-04 20:40:31 +01:00
parent 3c1f324a55
commit c68620df48
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,4 @@
# restart
UPDATE performance_schema.setup_instruments SET enabled = 'NO', timed = 'YES';
UPDATE performance_schema.setup_instruments SET enabled = 'YES'
WHERE name in ('wait/io/table/sql/handler',

View File

@ -1,5 +1,11 @@
--source include/not_embedded.inc
--source include/have_perfschema.inc
# This test needs a fresh restart. The table performance_schema.table_handles
# can otherwise contain extra rows left from previous testcases.
# For example the test case main.long_unique_delayed, which uses
# INSERT DELAYED, will leave extra rows in this table if run just before this
# test, causing .result diff failure.
--source include/restart_mysqld.inc
UPDATE performance_schema.setup_instruments SET enabled = 'NO', timed = 'YES';