mariadb/mysql-test/suite/atomic
Sergei Golubchik 2bd41fc5bf Revert MDEV-25292 Atomic CREATE OR REPLACE TABLE
Specifically:

Revert "MDEV-29664 Assertion `!n_mysql_tables_in_use' failed in innobase_close_connection"
This reverts commit ba875e9396.

Revert "MDEV-29620 Assertion `next_insert_id == 0' failed in handler::ha_external_lock"
This reverts commit aa08a7442a.

Revert "MDEV-29628 Memory leak after CREATE OR REPLACE with foreign key"
This reverts commit c579d66ba6.

Revert "MDEV-29609 create_not_windows test fails with different result"
This reverts commit cb583b2f1b.

Revert "MDEV-29544 SIGSEGV in HA_CREATE_INFO::finalize_locked_tables"
This reverts commit dcd66c3814.

Revert "MDEV-28933 CREATE OR REPLACE fails to recreate same constraint name"
This reverts commit cf6c517632.

Revert "MDEV-28933 Moved RENAME_CONSTRAINT_IDS to include/sql_funcs.h"
This reverts commit f1e1c1335b.

Revert "MDEV-28956 Locking is broken if CREATE OR REPLACE fails under LOCK TABLES"
This reverts commit a228ec80e3.

Revert "MDEV-25292 gcol.gcol_bugfixes --ps fix"
This reverts commit 24fff8267d.

Revert "MDEV-25292 Disable atomic replace for slave-generated or-replace"
This reverts commit 2af15914cb.

Revert "MDEV-25292 backup_log improved"
This reverts commit 34398a20b5.

Revert "MDEV-25292 Atomic CREATE OR REPLACE TABLE"
This reverts commit 93c8252f02.

Revert "MDEV-25292 Table_name class for (db, table_name, alias)"
This reverts commit d145dda9c7.

Revert "MDEV-25292 ha_table_exists() cleanup and improvement"
This reverts commit 409b8a86de.

Revert "MDEV-25292 Cleanups"
This reverts commit 595dad83ad.

Revert "MDEV-25292 Refactoring: moved select_field_count into Alter_info."
This reverts commit f02af1d229.
2022-10-27 23:13:41 +02:00
..
alter_partition,innodb.rdiff MDEV-22165 CONVERT TABLE: move in partition from existing table 2021-10-26 17:07:46 +02:00
alter_partition.combinations MDEV-22166 CONVERT PARTITION: move out partition into a table 2021-10-26 17:07:46 +02:00
alter_partition.result Merge 10.6 into 10.7 2022-09-21 09:33:07 +03:00
alter_partition.test MDEV-22165 CONVERT TABLE: move in partition from existing table 2021-10-26 17:07:46 +02:00
alter_table.opt MDEV-25180 Atomic ALTER TABLE 2021-05-19 22:54:13 +02:00
alter_table.result Merge 10.5 into 10.6 2022-09-20 16:53:20 +03:00
alter_table.test Speed up atomic test suite by improving wait_until_connected_again.inc 2021-05-24 21:04:40 +03:00
alter_table_aria.result Merge 10.5 into 10.6 2022-09-20 16:53:20 +03:00
alter_table_aria.test MDEV-25180 Atomic ALTER TABLE 2021-05-19 22:54:13 +02:00
alter_table_big_query.result Merge 10.5 into 10.6 2022-09-20 16:53:20 +03:00
alter_table_big_query.test Speed up atomic test suite by improving wait_until_connected_again.inc 2021-05-24 21:04:40 +03:00
alter_table_rocksdb.result Merge 10.5 into 10.6 2022-09-20 16:53:20 +03:00
alter_table_rocksdb.test MDEV-25180 Atomic ALTER TABLE 2021-05-19 22:54:13 +02:00
alter_table_trigger.result Merge 10.5 into 10.6 2022-09-20 16:53:20 +03:00
alter_table_trigger.test Speed up atomic test suite by improving wait_until_connected_again.inc 2021-05-24 21:04:40 +03:00
create_table.result Revert MDEV-25292 Atomic CREATE OR REPLACE TABLE 2022-10-27 23:13:41 +02:00
create_table.test Revert MDEV-25292 Atomic CREATE OR REPLACE TABLE 2022-10-27 23:13:41 +02:00
create_trigger.result Speed up atomic test suite by improving wait_until_connected_again.inc 2021-05-24 21:04:40 +03:00
create_trigger.test Speed up atomic test suite by improving wait_until_connected_again.inc 2021-05-24 21:04:40 +03:00
create_trigger2.result MDEV-24746 Atomic CREATE TRIGGER 2021-05-19 22:54:13 +02:00
create_trigger2.test MDEV-24746 Atomic CREATE TRIGGER 2021-05-19 22:54:13 +02:00
create_view.result MDEV-24607 Atomic CREATE VIEW 2021-05-19 22:54:13 +02:00
create_view.test Speed up atomic test suite by improving wait_until_connected_again.inc 2021-05-24 21:04:40 +03:00
disabled.def MDEV-29282 atomic.rename_trigger fails occasionally 2022-08-23 08:47:59 +03:00
drop_db.result Speed up atomic test suite by improving wait_until_connected_again.inc 2021-05-24 21:04:40 +03:00
drop_db.test Speed up atomic test suite by improving wait_until_connected_again.inc 2021-05-24 21:04:40 +03:00
drop_db_long_names.opt MDEV-24408 Crash-safe DROP DATABASE 2021-05-19 22:54:13 +02:00
drop_db_long_names.result Speed up atomic test suite by improving wait_until_connected_again.inc 2021-05-24 21:04:40 +03:00
drop_db_long_names.test Speed up atomic test suite by improving wait_until_connected_again.inc 2021-05-24 21:04:40 +03:00
drop_sequence.result Speed up atomic test suite by improving wait_until_connected_again.inc 2021-05-24 21:04:40 +03:00
drop_sequence.test Speed up atomic test suite by improving wait_until_connected_again.inc 2021-05-24 21:04:40 +03:00
drop_table.result Speed up atomic test suite by improving wait_until_connected_again.inc 2021-05-24 21:04:40 +03:00
drop_table.test Speed up atomic test suite by improving wait_until_connected_again.inc 2021-05-24 21:04:40 +03:00
drop_trigger.result Speed up atomic test suite by improving wait_until_connected_again.inc 2021-05-24 21:04:40 +03:00
drop_trigger.test Speed up atomic test suite by improving wait_until_connected_again.inc 2021-05-24 21:04:40 +03:00
drop_view.result Speed up atomic test suite by improving wait_until_connected_again.inc 2021-05-24 21:04:40 +03:00
drop_view.test Speed up atomic test suite by improving wait_until_connected_again.inc 2021-05-24 21:04:40 +03:00
README.txt MDEV-24746 Atomic CREATE TRIGGER 2021-05-19 22:54:13 +02:00
rename_case.result MDEV-23842 Atomic RENAME TABLE 2021-05-19 22:54:12 +02:00
rename_case.test MDEV-23842 Atomic RENAME TABLE 2021-05-19 22:54:12 +02:00
rename_combinations.result MDEV-23842 Atomic RENAME TABLE 2021-05-19 22:54:12 +02:00
rename_combinations.test MDEV-23842 Atomic RENAME TABLE 2021-05-19 22:54:12 +02:00
rename_table.result MDEV-23842 Atomic RENAME TABLE 2021-05-19 22:54:12 +02:00
rename_table.test Speed up atomic test suite by improving wait_until_connected_again.inc 2021-05-24 21:04:40 +03:00
rename_table_binlog.result MDEV-23842 Atomic RENAME TABLE 2021-05-19 22:54:12 +02:00
rename_table_binlog.test Speed up atomic test suite by improving wait_until_connected_again.inc 2021-05-24 21:04:40 +03:00
rename_trigger.result MDEV-23842 Atomic RENAME TABLE 2021-05-19 22:54:12 +02:00
rename_trigger.test Speed up atomic test suite by improving wait_until_connected_again.inc 2021-05-24 21:04:40 +03:00
rename_view.result MDEV-23842 Atomic RENAME TABLE 2021-05-19 22:54:12 +02:00
rename_view.test MDEV-23842 Atomic RENAME TABLE 2021-05-19 22:54:12 +02:00
rename_view2.result MDEV-23842 Atomic RENAME TABLE 2021-05-19 22:54:12 +02:00
rename_view2.test MDEV-23842 Atomic RENAME TABLE 2021-05-19 22:54:12 +02:00

To debug a the ddl_recovery code in a failing ddl_recovery test one could do
the following:

- Add # before --exec echo "restart" ...
- Force $e (engine), $c (crash point) and $r (crash position) to the values
  where things goes wrong. See comments in alter_table.test for how to do this.
- start mariadbd in a debugger

run the following in the debugger
(Replace 'atomic.create_trigger' with the failing test case)

#break ha_recover
#break MYSQL_BIN_LOG::recover
#break MYSQL_BIN_LOG::open

break ddl_log_close_binlogged_events
break ddl_log_execute_action
break ddl_log_execute_recovery
run --datadir=/my/maria-10.6/mysql-test/var/log/atomic.create_trigger/mysqld.1/data --log-basename=master --log-bin-index=mysqld-bin.index --debug --log-bin