MDEV-34817 perfschema.lowercase_fs_off fails on buildbot

This is a workaround patch to make buildbot green.

Renaming databases from db1/DB2 to m33020_db1/m33020_DB1
to make them unique. So the garbage left by other tests
does not show up any more.

The real problem will be fixed under terms of:
  MDEV-35282 Performance schema does not clear package routines
This commit is contained in:
Alexander Barkov 2024-10-29 14:22:59 +04:00
parent cc183489da
commit a79f314f1b
2 changed files with 29 additions and 26 deletions

View file

@ -1,22 +1,22 @@
#
# MDEV-33020 The database part is not case sensitive in SP names in PERFORMANCE_SCHEMA
#
CREATE OR REPLACE DATABASE DB1;
CREATE OR REPLACE DATABASE db1;
CREATE PROCEDURE DB1.sp() SELECT 'This is DB1.sp';
CREATE PROCEDURE db1.sp() SELECT 'This is db1.sp';
CALL DB1.sp();
This is DB1.sp
This is DB1.sp
CREATE PROCEDURE DB1.sp2() SELECT 'This is DB1.sp2';
CALL db1.sp();
This is db1.sp
This is db1.sp
CREATE OR REPLACE DATABASE m33020_DB1;
CREATE OR REPLACE DATABASE m33020_db1;
CREATE PROCEDURE m33020_DB1.sp() SELECT 'This is m33020_DB1.sp';
CREATE PROCEDURE m33020_db1.sp() SELECT 'This is m33020_db1.sp';
CALL m33020_DB1.sp();
This is m33020_DB1.sp
This is m33020_DB1.sp
CREATE PROCEDURE m33020_DB1.sp2() SELECT 'This is m33020_DB1.sp2';
CALL m33020_db1.sp();
This is m33020_db1.sp
This is m33020_db1.sp
SELECT object_type, object_schema, object_name, count_star, count_statements, sum_rows_sent
FROM performance_schema.events_statements_summary_by_program
WHERE object_type='procedure' AND LOWER(object_schema)='db1';
WHERE object_type='procedure' AND LOWER(object_schema)='m33020_db1';
object_type object_schema object_name count_star count_statements sum_rows_sent
PROCEDURE DB1 sp 1 1 1
PROCEDURE db1 sp 1 1 1
DROP DATABASE db1;
DROP DATABASE DB1;
PROCEDURE m33020_DB1 sp 1 1 1
PROCEDURE m33020_db1 sp 1 1 1
DROP DATABASE m33020_db1;
DROP DATABASE m33020_DB1;

View file

@ -10,18 +10,21 @@
--echo # MDEV-33020 The database part is not case sensitive in SP names in PERFORMANCE_SCHEMA
--echo #
CREATE OR REPLACE DATABASE DB1;
CREATE OR REPLACE DATABASE db1;
CREATE PROCEDURE DB1.sp() SELECT 'This is DB1.sp';
CREATE PROCEDURE db1.sp() SELECT 'This is db1.sp';
CALL DB1.sp();
# the m33020_ prefix was added to the database names
# to temporarily address MDEV-34817
CREATE OR REPLACE DATABASE m33020_DB1;
CREATE OR REPLACE DATABASE m33020_db1;
CREATE PROCEDURE m33020_DB1.sp() SELECT 'This is m33020_DB1.sp';
CREATE PROCEDURE m33020_db1.sp() SELECT 'This is m33020_db1.sp';
CALL m33020_DB1.sp();
# This is needed to reset the SP cache (a MDEV-33019 workaround)
CREATE PROCEDURE DB1.sp2() SELECT 'This is DB1.sp2';
CALL db1.sp();
CREATE PROCEDURE m33020_DB1.sp2() SELECT 'This is m33020_DB1.sp2';
CALL m33020_db1.sp();
SELECT object_type, object_schema, object_name, count_star, count_statements, sum_rows_sent
FROM performance_schema.events_statements_summary_by_program
WHERE object_type='procedure' AND LOWER(object_schema)='db1';
WHERE object_type='procedure' AND LOWER(object_schema)='m33020_db1';
DROP DATABASE db1;
DROP DATABASE DB1;
DROP DATABASE m33020_db1;
DROP DATABASE m33020_DB1;