mariadb/mysql-test/extra/binlog_tests
Sujatha 4a9fb9055e MDEV-20188: binlog.binlog_stm_drop_tmp_tbl fails in buildbot with Unknown table on exec
Analysis:
========
As part of BUG#28642318 fix, two new test cases were added. The first test
case tests a scenario where two sessions are present, in which the first
session has a regular table named 't1' and another session has a temporary
table named 't1'. Test executes a DELETE statement on regular table. These
statements are captured from binary log and replayed back on new client
connection to prove that DELETE statement is applied successfully. Note that
the binlog contains only CREATE TEMPORARY TABLE part hence a temporary table
gets created in new connection. This replaying logic is implemented by using
'--exec $MYSQL' command. If the new connection gets disconnected within the
scope of first test case the test passes, i.e the temporary table gets dropped
as part thread cleanup. But on slow platforms the connection gets closed at
the time of execution of test case 2. When the temporary table is dropped as
part thread cleanup a "DROP TEMPORARY TABLE t1" is written into the binary
log. In test case two the same sessions continue to exist and and table names
are reused to test a new bug scenario. The additional "DROP TEMPORARY TABLE"
command drops second test specific tables which results in "Unknown table"
error.

Fix:
====
Rename the second case specific table to 't2'. Even if the close connection
from test case one happens later the drop command with has
'DROP /*!40005 TEMPORARY */ TABLE IF EXISTS `t1`' will not result in an error.
2019-08-26 14:03:51 +05:30
..
binlog.test run binlog.binlog_stm_binlog test in non-debug builds 2018-09-04 09:19:49 +02:00
binlog_cache_stat.test BUG#57275 binlog_cache_size affects trx- and stmt-cache and gets twice the expected memory 2010-11-05 17:42:37 +00:00
binlog_incident-master.opt fix binlog_encryption.binlog_incident test 2016-12-06 09:45:51 +01:00
binlog_incident.inc MDEV-9038 Binlog encryption tests 2016-12-05 20:19:01 +02:00
binlog_index.inc Merge branch '10.0' into 10.1 2016-12-11 09:53:42 +01:00
binlog_insert_delayed.test Fix for MDEV-533: Confusing error code when doing auto-increment insert for out-of-range values 2012-09-18 15:14:19 +03:00
binlog_ioerr.inc MDEV-9038 Binlog encryption tests 2016-12-05 20:19:01 +02:00
binlog_mysqlbinlog-cp932.inc MDEV-9038 Binlog encryption tests 2016-12-05 20:19:01 +02:00
binlog_row_annotate.inc MDEV-9038 Binlog encryption tests 2016-12-05 20:19:01 +02:00
binlog_truncate.test Tests: many if/while expresissons simplified after 57276 2010-11-17 11:16:13 +01:00
binlog_write_error.inc MDEV-9038 Binlog encryption tests 2016-12-05 20:19:01 +02:00
binlog_xa_recover.inc MDEV-9038 Binlog encryption tests 2016-12-05 20:19:01 +02:00
blackhole.test Tests: many if/while expresissons simplified after 57276 2010-11-17 11:16:13 +01:00
ctype_cp932.test Merge dl145h.mysql.com:/data0/mkindahl/mysql-5.0-rpl 2008-02-20 19:49:26 +01:00
ctype_cp932_binlog.test
ctype_ucs_binlog.test Followup test fix after 13055685: 2011-11-09 09:58:18 +01:00
database.test Merge branch '10.0-galera' into 10.1 2016-11-02 13:44:07 +01:00
drop_table.test Backport of revno ## 2617.31.1, 2617.31.3, 2617.31.4, 2617.31.5, 2009-12-05 02:02:48 +03:00
drop_temp_table.test MDEV-20188: binlog.binlog_stm_drop_tmp_tbl fails in buildbot with Unknown table on exec 2019-08-26 14:03:51 +05:30
implicit.test upmerge and adapt follow-up to 55582 2010-10-21 09:37:10 +02:00
insert_select-binlog.test
mix_innodb_myisam_binlog.test Merge commit '96badb16afcf' into 10.0 2015-08-03 23:09:43 +03:00
mix_innodb_myisam_side_effects.test BUG#53452 Inconsistent behavior of binlog_direct_non_transactional_updates with 2010-08-20 03:59:58 +01:00
mysqlbinlog_row_engine.inc MDEV-3929 Add system variable explicit_defaults_for_timestamp for compatibility with MySQL 2015-09-22 14:01:54 +04:00