Debian Codegraph @

mysql-test/suite/ndb_rpl/t/ndb_rpl_readonly.test

raw
1 # Bug#32969309
2 # This test validates that the applier replica worker does not get
3 # stuck in a deadlock scenario, when the NDB metadata change monitor
4 # thread has failed to release the locks it had acquired on an object
5 # (schema).
6
7 --source include/have_ndb.inc
8 --source include/have_binlog_format_mixed_or_row.inc
9 --source suite/ndb_rpl/ndb_master-slave.inc
10
11 --echo Setup replication and CREATE DATABASE
12
13 --source include/rpl_connection_master.inc
14 CREATE DATABASE test_readonly;
15
16 --echo Replicate CREATE DATABASE and set read_only on replica
17 --source include/sync_slave_sql_with_master.inc
18
19 set global read_only=1;
20
21 --echo Time delay from CREATE to DROP lets the NDB metadata change monitor lock the schema
22 sleep 1;
23
24 --source include/rpl_connection_master.inc
25 DROP DATABASE test_readonly;
26
27 --echo Sync DROP statement. If OK, it won't timeout
28 --source include/sync_slave_sql_with_master.inc
29
30 --echo Cleanup
31 --source include/rpl_connection_slave.inc
32 set global read_only=0;
33
34 --source include/rpl_end.inc