Skip to content

Commit

Permalink
MDEV-23974 fixup: rpl.rpl_gtid_stop_start fails
Browse files Browse the repository at this point in the history
The call mtr.add_suppression() that was added
in commit 75b7cd6
for MemorySanitizer and Valgrind runs is causing
a result difference for the test rpl.rpl_gtid_stop_start.
Let us disable the binlog for executing that statement.

Also, the test perfschema.statement_program_lost_inst
would fail due to the changes to have_innodb.inc in this commit.
To compensate for that, we will make more --suite=perfschema
tests run without InnoDB, and explicitly enable InnoDB in
those tests that depend on a transactional storage engine.
  • Loading branch information
dr-m committed Mar 24, 2022
1 parent d2c019b commit b101f19
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 7 deletions.
2 changes: 2 additions & 0 deletions mysql-test/include/have_innodb.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
--disable_query_log
if (`select count(*) from information_schema.system_variables where variable_name='have_sanitizer' and global_value like "MSAN%"`)
{
SET STATEMENT sql_log_bin=0 FOR
call mtr.add_suppression("InnoDB: Trying to delete tablespace.*pending operations");
}
if ($VALGRIND_TEST)
{
SET STATEMENT sql_log_bin=0 FOR
call mtr.add_suppression("InnoDB: Trying to delete tablespace.*pending operations");
}
--enable_query_log
3 changes: 1 addition & 2 deletions mysql-test/suite/perfschema/include/program_nested_setup.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#

--source include/no_protocol.inc
--source include/have_innodb.inc

--echo # SET-UP
CREATE DATABASE nested_sp;
Expand All @@ -17,7 +16,7 @@ CREATE TABLE t1(
CREATE TABLE t2(
n INT UNSIGNED NOT NULL,
f BIGINT UNSIGNED
) engine=innodb;
);

--echo ############################
--echo # Creating Stored Programs #
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/perfschema/r/max_program_zero.result
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ data INT NOT NULL
CREATE TABLE t2(
n INT UNSIGNED NOT NULL,
f BIGINT UNSIGNED
) engine=innodb;
);
############################
# Creating Stored Programs #
############################
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ data INT NOT NULL
CREATE TABLE t2(
n INT UNSIGNED NOT NULL,
f BIGINT UNSIGNED
) engine=innodb;
);
############################
# Creating Stored Programs #
############################
Expand Down
5 changes: 3 additions & 2 deletions mysql-test/suite/perfschema/r/statement_program_nested.result
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ data INT NOT NULL
CREATE TABLE t2(
n INT UNSIGNED NOT NULL,
f BIGINT UNSIGNED
) engine=innodb;
);
############################
# Creating Stored Programs #
############################
Expand Down Expand Up @@ -67,6 +67,7 @@ END WHILE;
END|
CREATE TRIGGER trg AFTER INSERT ON t1 FOR EACH ROW
CALL ifac(10)|
ALTER TABLE t2 ENGINE=InnoDB;
#####################
# Executing queries #
#####################
Expand Down Expand Up @@ -1199,7 +1200,7 @@ data INT NOT NULL
CREATE TABLE t2(
n INT UNSIGNED NOT NULL,
f BIGINT UNSIGNED
) engine=innodb;
);
############################
# Creating Stored Programs #
############################
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ CREATE TRIGGER trg4 BEFORE DELETE ON t1 FOR EACH ROW
SET @del:= @del + 1|
CREATE TRIGGER trg5 AFTER DELETE ON t1 FOR EACH ROW
SET @del:= @del + 8 + old.j|
ALTER TABLE t2 ENGINE=InnoDB;
#####################
# Executing queries #
#####################
Expand Down Expand Up @@ -159,6 +160,7 @@ WHERE CURRENT_SCHEMA='stored_programs' AND
ORDER BY OBJECT_NAME,NESTING_EVENT_LEVEL,SQL_TEXT;
EVENT_NAME SQL_TEXT OBJECT_NAME NESTING_EVENT_TYPE NESTING_EVENT_LEVEL
statement/scheduler/event NULL NULL NULL 0
statement/sql/alter_table ALTER TABLE t2 ENGINE=InnoDB NULL NULL 0
statement/sql/call_procedure CALL SampleProc1(30,40,50) NULL NULL 0
statement/sql/call_procedure CALL SampleProc2("Jwalamukhi",34) NULL NULL 0
statement/sql/call_procedure CALL SampleProc3() NULL NULL 0
Expand Down Expand Up @@ -375,7 +377,7 @@ data INT NOT NULL
CREATE TABLE t2(
n INT UNSIGNED NOT NULL,
f BIGINT UNSIGNED
) engine=innodb;
);
############################
# Creating Stored Programs #
############################
Expand Down Expand Up @@ -429,6 +431,7 @@ END WHILE;
END|
CREATE TRIGGER trg AFTER INSERT ON t1 FOR EACH ROW
CALL ifac(10)|
ALTER TABLE t2 ENGINE=InnoDB;
#####################
# Executing queries #
#####################
Expand Down
2 changes: 2 additions & 0 deletions mysql-test/suite/perfschema/t/statement_program_nested.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

--source include/not_embedded.inc
--source include/have_perfschema.inc
--source include/have_innodb.inc

TRUNCATE TABLE performance_schema.events_statements_summary_by_program;
TRUNCATE TABLE performance_schema.events_statements_history_long;
Expand All @@ -13,6 +14,7 @@ TRUNCATE TABLE performance_schema.events_statements_history_long;
--echo #################################################

--source suite/perfschema/include/program_nested_setup.inc
ALTER TABLE t2 ENGINE=InnoDB;
--source suite/perfschema/include/program_nested_execution.inc

SELECT EVENT_NAME, SQL_TEXT, CURRENT_SCHEMA, OBJECT_TYPE, OBJECT_SCHEMA,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@

--source include/not_embedded.inc
--source include/have_perfschema.inc
--source include/have_innodb.inc

TRUNCATE TABLE performance_schema.events_statements_history_long;

--echo #----------------------------
--echo # Non-nested Stored programs.
--echo #----------------------------
--source suite/perfschema/include/program_setup.inc
ALTER TABLE t2 ENGINE=InnoDB;
--source suite/perfschema/include/program_execution.inc

SELECT EVENT_NAME, SQL_TEXT, OBJECT_NAME, NESTING_EVENT_TYPE, NESTING_EVENT_LEVEL
Expand All @@ -31,6 +33,7 @@ TRUNCATE TABLE performance_schema.events_statements_history_long;
--echo # Nested stored programs.
--echo #------------------------
--source suite/perfschema/include/program_nested_setup.inc
ALTER TABLE t2 ENGINE=InnoDB;
--source suite/perfschema/include/program_nested_execution.inc

SELECT EVENT_NAME, SQL_TEXT, OBJECT_NAME, NESTING_EVENT_TYPE, NESTING_EVENT_LEVEL
Expand Down

0 comments on commit b101f19

Please sign in to comment.