mariadb/mysql-test/suite/s3
Monty 71d263a198 MDEV-23691 S3 storage engine: delayed slave can drop the table
This commit fixed the problems with S3 after the "DROP TABLE FORCE" changes.
It also fixes all failing replication S3 tests.

A slave is delayed if it is trying to execute replicated queries on a
table that is already converted to S3 by the master later in the binlog.

Fixes for replication events on S3 tables for delayed slaves:
- INSERT and INSERT ... SELECT and CREATE TABLE are ignored but written
  to the binary log.   UPDATE & DELETE will be fixed in a future commit.

Other things:
- On slaves with --s3-slave-ignore-updates set, allow S3 tables to be
  opened in read-write mode. This was done to be able to
  ignore-but-replicate queries like insert.  Without this change any
  open of an S3 table failed with 'Table is read only' which is too
  early to be able to replicate the original query.
- Errors are now printed if handler::extra() call fails in
  wait_while_tables_are_used().
- Error message for row changes are changed from HA_ERR_WRONG_COMMAND
  to HA_ERR_TABLE_READONLY.
- Disable some maria_extra() calls for S3 tables. This could cause
  S3 tables to fail in some cases.
- Added missing thr_lock_delete() to ma_open() in case of failure.
- Removed from mysql_prepare_insert() the not needed argument 'table'.
2020-10-21 03:09:29 +03:00
..
alter.result MDEV-23691 S3 storage engine: delayed slave can drop the table 2020-10-21 03:09:29 +03:00
alter.test MDEV-23691 S3 storage engine: delayed slave can drop the table 2020-10-21 03:09:29 +03:00
alter2.result Fixed bugs in s3 test cases 2020-06-19 12:03:13 +03:00
alter2.test Fixed bugs in s3 test cases 2020-06-19 12:03:13 +03:00
amazon.result Updated libmarias3 to latest version 2019-08-29 12:49:56 +03:00
amazon.test Updated libmarias3 to latest version 2019-08-29 12:49:56 +03:00
arguments.result MDEV-17841 S3 storage engine 2019-05-23 02:28:23 +03:00
arguments.test MDEV-17841 S3 storage engine 2019-05-23 02:28:23 +03:00
backup.result Added testcase for MDEV-19585 2019-06-27 01:33:15 +03:00
backup.test Added testcase for MDEV-19585 2019-06-27 01:33:15 +03:00
basic.result MDEV-23662: Make S3 Storage Engine usable with MinIO 2020-09-08 13:42:55 +03:00
basic.test Added support for replication for S3 2020-03-24 21:00:02 +02:00
create_database.inc MDEV-17841 S3 storage engine 2019-05-23 02:28:23 +03:00
disabled.def MDEV-23650 Test S3 in buildbot 2020-09-20 17:26:15 +03:00
discovery.result MDEV-17841 S3 storage engine 2019-05-23 02:28:23 +03:00
discovery.test MDEV-17841 S3 storage engine 2019-05-23 02:28:23 +03:00
drop_database.inc MDEV-17841 S3 storage engine 2019-05-23 02:28:23 +03:00
encryption.opt MDEV-20306 Assert when converting encrypted Aria table to S3 2019-08-23 22:02:39 +02:00
encryption.result MDEV-20306 Assert when converting encrypted Aria table to S3 2019-08-23 22:02:39 +02:00
encryption.test MDEV-20306 Assert when converting encrypted Aria table to S3 2019-08-23 22:02:39 +02:00
innodb.result Added S3 test case with InnoDB 2019-06-24 12:13:19 +03:00
innodb.test Added S3 test case with InnoDB 2019-06-24 12:13:19 +03:00
my.cnf make S3 tests to run when S3 is statically linked 2020-09-10 13:32:27 +02:00
mysqldump.result MDEV-19867: fix mysqldump to by default not copy S3 tables 2019-06-26 20:59:35 +03:00
mysqldump.test MDEV-19867: fix mysqldump to by default not copy S3 tables 2019-06-26 20:59:35 +03:00
no_s3-master.opt MDEV-17841 S3 storage engine 2019-05-23 02:28:23 +03:00
no_s3.result make S3 tests to run when S3 is statically linked 2020-09-10 13:32:27 +02:00
no_s3.test MDEV-17841 S3 storage engine 2019-05-23 02:28:23 +03:00
partition.result MDEV-23691 S3 storage engine: delayed slave can drop the table 2020-10-21 03:09:29 +03:00
partition.test MDEV-23650 Test S3 in buildbot 2020-09-20 17:26:15 +03:00
partition_create_fail.result Added support for more functions when using partitioned S3 tables 2020-04-19 17:33:51 +03:00
partition_create_fail.test Added support for more functions when using partitioned S3 tables 2020-04-19 17:33:51 +03:00
partition_move.result Added support for more functions when using partitioned S3 tables 2020-04-19 17:33:51 +03:00
partition_move.test MDEV-23650 Test S3 in buildbot 2020-09-20 17:26:15 +03:00
replication.inc MDEV-23691 S3 storage engine: delayed slave can drop the table 2020-10-21 03:09:29 +03:00
replication_delayed.cnf MDEV-23691 S3 storage engine: delayed slave can drop the table 2020-10-21 03:09:29 +03:00
replication_delayed.result MDEV-23691 S3 storage engine: delayed slave can drop the table 2020-10-21 03:09:29 +03:00
replication_delayed.test MDEV-23691 S3 storage engine: delayed slave can drop the table 2020-10-21 03:09:29 +03:00
replication_mixed.cnf Added support for more functions when using partitioned S3 tables 2020-04-19 17:33:51 +03:00
replication_mixed.result MDEV-23691 S3 storage engine: delayed slave can drop the table 2020-10-21 03:09:29 +03:00
replication_mixed.test Added support for more functions when using partitioned S3 tables 2020-04-19 17:33:51 +03:00
replication_partition.cnf Added support for more functions when using partitioned S3 tables 2020-04-19 17:33:51 +03:00
replication_partition.result MDEV-22925 ALTER TABLE s3_table ENGINE=Aria can cause failure on slave 2020-06-19 12:03:13 +03:00
replication_partition.test Fixed bugs in s3 test cases 2020-06-19 12:03:13 +03:00
replication_stmt.cnf Added support for more functions when using partitioned S3 tables 2020-04-19 17:33:51 +03:00
replication_stmt.result MDEV-23691 S3 storage engine: delayed slave can drop the table 2020-10-21 03:09:29 +03:00
replication_stmt.test Added support for more functions when using partitioned S3 tables 2020-04-19 17:33:51 +03:00
select.result MDEV-17841 S3 storage engine 2019-05-23 02:28:23 +03:00
select.test MDEV-17841 S3 storage engine 2019-05-23 02:28:23 +03:00
slave.cnf make S3 tests to run when S3 is statically linked 2020-09-10 13:32:27 +02:00
suite.pm S3 is pluggable now 2020-06-19 19:43:07 +02:00
unsupported.result Added support for replication for S3 2020-03-24 21:00:02 +02:00
unsupported.test Added support for replication for S3 2020-03-24 21:00:02 +02:00