mariadb/mysql-test/suite
Jan Lindström 277968aa4c MDEV-31413 : Node has been dropped from the cluster on Startup / Shutdown with async replica
There was two related problems:

(1) Galera node that is defined as a slave to async MariaDB
master at restart might do SST (state stransfer) and
part of that it will copy mysql.gtid_slave_pos table.
Problem is that updates on that table are not replicated
on a cluster. Therefore, table from donor that is not
slave is copied and joiner looses gtid position it was
and start executing events from wrong position of the binlog.
This incorrect position could break replication and
causes node to be dropped and requiring user action.

(2) Slave sql thread might start executing events before
galera is ready (wsrep_ready=ON) and that could also
cause node to be dropped from the cluster.

In this fix we enable replication of mysql.gtid_slave_pos
table on a cluster. In this way all nodes in a cluster
will know gtid slave position and even after SST joiner
knows correct gtid position to start.

Furthermore, we wait galera to be ready before slave
sql thread executes any events to prevent too early
execution.

Signed-off-by: Julius Goryavsky <julius.goryavsky@mariadb.com>
2023-08-08 03:25:56 +02:00
..
archive MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00
binlog MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00
binlog_encryption MDEV-31723: Crash on SET SESSION gtid_seq_no= DEFAULT 2023-07-30 22:00:43 +02:00
compat MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00
csv Merge remote-tracking branch 'origin/10.3' into 10.4 2020-07-03 20:26:09 +03:00
encryption MDEV-29692 Assertion `(writeptr + (i * size)) != local_frame' failed upon IMPORT TABLESPACE 2023-03-21 14:33:54 +02:00
engines MDEV-30421 more tests cleaned up 2023-03-23 21:07:32 +03:00
federated MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00
funcs_1 MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00
funcs_2 MDEV-30233 DROP DATABASE test fails: Directory not empty 2022-12-15 11:14:23 +02:00
galera MDEV-31413 : Node has been dropped from the cluster on Startup / Shutdown with async replica 2023-08-08 03:25:56 +02:00
galera_3nodes MDEV-25045 : Assertion `client_state_.mode() != wsrep::client_state::m_toi' failed in int wsrep::transaction::before_commit() 2023-03-31 12:48:13 +02:00
galera_3nodes_sr MDEV-27912 Fixing inconsistency w.r.t. expect files in tests. 2023-03-22 11:55:57 +11:00
galera_sr MDEV-30838 Assertion `m_thd == _current_thd()' 2023-05-02 03:42:39 +02:00
gcol MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00
handler MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00
heap Merge 10.3 into 10.4 2022-09-13 16:36:38 +03:00
innodb MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00
innodb_fts Revert "MDEV-30528 Assertion in dtype_get_at_most_n_mbchars" 2023-07-31 16:57:18 +03:00
innodb_gis MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00
innodb_zip Merge 10.3 into 10.4 2022-12-13 11:37:33 +02:00
jp MDEV-29446 Change SHOW CREATE TABLE to display default collation 2022-09-12 22:10:39 +04:00
json MDEV-19628 JSON with starting double quotes key is not valid. 2019-09-30 14:43:32 +04:00
large_tests MDEV-18187 Aria engine: Redo phase failed with "error 192 when executing record redo_index_new_page" upon startup on a restored datadir 2021-12-15 16:28:01 +02:00
maria Updated some test result for 32 bit systems 2023-05-24 19:22:08 +03:00
mariabackup MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00
mtr/t
mtr2
multi_source Merge 10.3 into 10.4 2020-08-21 19:57:22 +03:00
optimizer_unfixed_bugs
parts MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00
perfschema MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00
perfschema_stress Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
period reformat the test 2022-11-27 05:11:39 +10:00
plugins MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00
roles MDEV-30526 Assertion `rights == merged->cols' failed in update_role_columns 2023-02-21 23:22:56 +01:00
rpl Fix rpl.rpl_rotate_logs to work with --repeat 2023-07-30 22:00:43 +02:00
sql_sequence MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00
storage_engine Merge 10.2 into 10.3 2020-08-21 19:18:34 +03:00
stress MDEV-29710: Skip some more tests on Valgrind 2022-10-05 20:37:54 +03:00
sys_vars MDEV-31723: Crash on SET SESSION gtid_seq_no= DEFAULT 2023-07-30 22:00:43 +02:00
unit
vcol MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00
versioning MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00
wsrep