mirror of
https://github.com/MariaDB/server.git
synced 2025-01-28 17:54:16 +01:00
2bd41fc5bf
Specifically: Revert "MDEV-29664 Assertion `!n_mysql_tables_in_use' failed in innobase_close_connection" This reverts commitba875e9396
. Revert "MDEV-29620 Assertion `next_insert_id == 0' failed in handler::ha_external_lock" This reverts commitaa08a7442a
. Revert "MDEV-29628 Memory leak after CREATE OR REPLACE with foreign key" This reverts commitc579d66ba6
. Revert "MDEV-29609 create_not_windows test fails with different result" This reverts commitcb583b2f1b
. Revert "MDEV-29544 SIGSEGV in HA_CREATE_INFO::finalize_locked_tables" This reverts commitdcd66c3814
. Revert "MDEV-28933 CREATE OR REPLACE fails to recreate same constraint name" This reverts commitcf6c517632
. Revert "MDEV-28933 Moved RENAME_CONSTRAINT_IDS to include/sql_funcs.h" This reverts commitf1e1c1335b
. Revert "MDEV-28956 Locking is broken if CREATE OR REPLACE fails under LOCK TABLES" This reverts commita228ec80e3
. Revert "MDEV-25292 gcol.gcol_bugfixes --ps fix" This reverts commit24fff8267d
. Revert "MDEV-25292 Disable atomic replace for slave-generated or-replace" This reverts commit2af15914cb
. Revert "MDEV-25292 backup_log improved" This reverts commit34398a20b5
. Revert "MDEV-25292 Atomic CREATE OR REPLACE TABLE" This reverts commit93c8252f02
. Revert "MDEV-25292 Table_name class for (db, table_name, alias)" This reverts commitd145dda9c7
. Revert "MDEV-25292 ha_table_exists() cleanup and improvement" This reverts commit409b8a86de
. Revert "MDEV-25292 Cleanups" This reverts commit595dad83ad
. Revert "MDEV-25292 Refactoring: moved select_field_count into Alter_info." This reverts commitf02af1d229
.
113 lines
4.6 KiB
Text
113 lines
4.6 KiB
Text
call mtr.add_suppression("Write to binary log failed: Error writing file*");
|
|
#
|
|
# Test injecting binlog write error when executing queries
|
|
#
|
|
set @saved_dbug = @@global.debug_dbug;
|
|
SET GLOBAL debug_dbug='d,injecting_fault_writing';
|
|
CREATE TABLE t1 (a INT);
|
|
CREATE TABLE t1 (a INT);
|
|
ERROR HY000: Error writing file 'master-bin' ((errno: #)
|
|
set @@global.debug_dbug = @saved_dbug;
|
|
INSERT INTO t1 VALUES (1),(2),(3);
|
|
set @saved_dbug = @@global.debug_dbug;
|
|
SET GLOBAL debug_dbug='d,injecting_fault_writing';
|
|
INSERT INTO t1 VALUES (4),(5),(6);
|
|
INSERT INTO t1 VALUES (4),(5),(6);
|
|
ERROR HY000: Error writing file 'master-bin' ((errno: #)
|
|
set @@global.debug_dbug = @saved_dbug;
|
|
set @saved_dbug = @@global.debug_dbug;
|
|
SET GLOBAL debug_dbug='d,injecting_fault_writing';
|
|
UPDATE t1 set a=a+1;
|
|
UPDATE t1 set a=a+1;
|
|
ERROR HY000: Error writing file 'master-bin' ((errno: #)
|
|
set @@global.debug_dbug = @saved_dbug;
|
|
set @saved_dbug = @@global.debug_dbug;
|
|
SET GLOBAL debug_dbug='d,injecting_fault_writing';
|
|
DELETE FROM t1;
|
|
DELETE FROM t1;
|
|
ERROR HY000: Error writing file 'master-bin' ((errno: #)
|
|
set @@global.debug_dbug = @saved_dbug;
|
|
set @saved_dbug = @@global.debug_dbug;
|
|
SET GLOBAL debug_dbug='d,injecting_fault_writing';
|
|
CREATE TRIGGER tr1 AFTER INSERT ON t1 FOR EACH ROW INSERT INTO t1 VALUES (new.a + 100);
|
|
CREATE TRIGGER tr1 AFTER INSERT ON t1 FOR EACH ROW INSERT INTO t1 VALUES (new.a + 100);
|
|
ERROR HY000: Error writing file 'master-bin' ((errno: #)
|
|
set @@global.debug_dbug = @saved_dbug;
|
|
set @saved_dbug = @@global.debug_dbug;
|
|
SET GLOBAL debug_dbug='d,injecting_fault_writing';
|
|
DROP TRIGGER tr1;
|
|
DROP TRIGGER tr1;
|
|
ERROR HY000: Error writing file 'master-bin' ((errno: #)
|
|
set @@global.debug_dbug = @saved_dbug;
|
|
set @saved_dbug = @@global.debug_dbug;
|
|
SET GLOBAL debug_dbug='d,injecting_fault_writing';
|
|
ALTER TABLE t1 ADD (b INT);
|
|
ALTER TABLE t1 ADD (b INT);
|
|
ERROR HY000: Error writing file 'master-bin' ((errno: #)
|
|
set @@global.debug_dbug = @saved_dbug;
|
|
set @saved_dbug = @@global.debug_dbug;
|
|
SET GLOBAL debug_dbug='d,injecting_fault_writing';
|
|
CREATE VIEW v1 AS SELECT a FROM t1;
|
|
CREATE VIEW v1 AS SELECT a FROM t1;
|
|
ERROR HY000: Error writing file 'master-bin' ((errno: #)
|
|
set @@global.debug_dbug = @saved_dbug;
|
|
set @saved_dbug = @@global.debug_dbug;
|
|
SET GLOBAL debug_dbug='d,injecting_fault_writing';
|
|
DROP VIEW v1;
|
|
DROP VIEW v1;
|
|
ERROR HY000: Error writing file 'master-bin' ((errno: #)
|
|
set @@global.debug_dbug = @saved_dbug;
|
|
set @saved_dbug = @@global.debug_dbug;
|
|
SET GLOBAL debug_dbug='d,injecting_fault_writing';
|
|
CREATE PROCEDURE p1(OUT rows_cnt INT) SELECT count(*) INTO rows_cnt FROM t1;
|
|
CREATE PROCEDURE p1(OUT rows_cnt INT) SELECT count(*) INTO rows_cnt FROM t1;
|
|
ERROR HY000: Error writing file 'master-bin' ((errno: #)
|
|
set @@global.debug_dbug = @saved_dbug;
|
|
set @saved_dbug = @@global.debug_dbug;
|
|
SET GLOBAL debug_dbug='d,injecting_fault_writing';
|
|
DROP PROCEDURE p1;
|
|
DROP PROCEDURE p1;
|
|
ERROR HY000: Error writing file 'master-bin' ((errno: #)
|
|
set @@global.debug_dbug = @saved_dbug;
|
|
set @saved_dbug = @@global.debug_dbug;
|
|
SET GLOBAL debug_dbug='d,injecting_fault_writing';
|
|
DROP TABLE t1;
|
|
DROP TABLE t1;
|
|
ERROR HY000: Error writing file 'master-bin' ((errno: #)
|
|
set @@global.debug_dbug = @saved_dbug;
|
|
set @saved_dbug = @@global.debug_dbug;
|
|
SET GLOBAL debug_dbug='d,injecting_fault_writing';
|
|
CREATE FUNCTION f1() RETURNS INT return 1;
|
|
CREATE FUNCTION f1() RETURNS INT return 1;
|
|
ERROR HY000: Error writing file 'master-bin' ((errno: #)
|
|
set @@global.debug_dbug = @saved_dbug;
|
|
set @saved_dbug = @@global.debug_dbug;
|
|
SET GLOBAL debug_dbug='d,injecting_fault_writing';
|
|
DROP FUNCTION f1;
|
|
DROP FUNCTION f1;
|
|
ERROR HY000: Error writing file 'master-bin' ((errno: #)
|
|
set @@global.debug_dbug = @saved_dbug;
|
|
set @saved_dbug = @@global.debug_dbug;
|
|
SET GLOBAL debug_dbug='d,injecting_fault_writing';
|
|
CREATE USER user1;
|
|
CREATE USER user1;
|
|
ERROR HY000: Error writing file 'master-bin' ((errno: #)
|
|
set @@global.debug_dbug = @saved_dbug;
|
|
set @saved_dbug = @@global.debug_dbug;
|
|
SET GLOBAL debug_dbug='d,injecting_fault_writing';
|
|
REVOKE ALL PRIVILEGES, GRANT OPTION FROM user1;
|
|
REVOKE ALL PRIVILEGES, GRANT OPTION FROM user1;
|
|
ERROR HY000: Error writing file 'master-bin' ((errno: #)
|
|
set @@global.debug_dbug = @saved_dbug;
|
|
set @saved_dbug = @@global.debug_dbug;
|
|
SET GLOBAL debug_dbug='d,injecting_fault_writing';
|
|
SET PASSWORD FOR user1=PASSWORD('foobar');
|
|
SET PASSWORD FOR user1=PASSWORD('foobar');
|
|
ERROR HY000: Error writing file 'master-bin' ((errno: #)
|
|
set @@global.debug_dbug = @saved_dbug;
|
|
set @saved_dbug = @@global.debug_dbug;
|
|
SET GLOBAL debug_dbug='d,injecting_fault_writing';
|
|
DROP USER user1;
|
|
DROP USER user1;
|
|
ERROR HY000: Error writing file 'master-bin' ((errno: #)
|
|
set @@global.debug_dbug = @saved_dbug;
|