mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 10:31:54 +01:00
a00bb75783
failure to cleanup of table The test case was not dropping a table before exiting (ie, it was not cleaning itself after execution). In this case, the warning message stating that the test did not do a proper cleanup was deterministic (which can be annoying). I have found other tests cases on which mtr sporadically reports that they have not cleaned up after execution: - rpl_ndb_circular - rpl_failed_optimize In this case, the master was dropping a table but there was no synchronization between the slave and the master. This patch addresses the rpl_ndb_circular_simplex case by adding the missing DROP table. The other cases are fixed by deploying the missing sync_slave_with_master instruction.
25 lines
508 B
Text
25 lines
508 B
Text
-- source include/master-slave.inc
|
|
|
|
#
|
|
# BUG#5551 "Failed OPTIMIZE TABLE is logged to binary log"
|
|
# Replication should work when OPTIMIZE TABLE timeouts, and
|
|
# when OPTIMIZE TABLE is executed on a non-existing table
|
|
#
|
|
|
|
eval CREATE TABLE t1 ( a int ) ENGINE=$engine_type;
|
|
BEGIN;
|
|
INSERT INTO t1 VALUES (1);
|
|
|
|
connection master1;
|
|
OPTIMIZE TABLE t1;
|
|
|
|
OPTIMIZE TABLE non_existing;
|
|
sync_slave_with_master;
|
|
|
|
# End of 4.1 tests
|
|
|
|
connection master;
|
|
select * from t1;
|
|
commit;
|
|
drop table t1;
|
|
-- sync_slave_with_master
|