Debian Codegraph @

mysql-test/suite/ndb/t/ndb_dd_restore_compat.test

raw
1 -- source include/have_multi_ndb.inc
2 -- source suite/ndb/include/backup_restore_setup.inc
3
4 --exec $NDB_RESTORE $NDB_RESTORE_NO_ENCR -b 1 -n 1 -p 1 -m -r $NDB_SAVED_BACKUPS/51_dd >> $NDB_TOOLS_OUTPUT
5 --exec $NDB_RESTORE $NDB_RESTORE_NO_ENCR -e -b 1 -n 2 -p 1 -r $NDB_SAVED_BACKUPS/51_dd >> $NDB_TOOLS_OUTPUT
6
7 --disable_query_log
8 # Suppress expected errors
9 call mtr.add_suppression("Table upgrade required");
10 call mtr.add_suppression("Table definition contains obsolete data types");
11 call mtr.add_suppression("Failed to migrate table");
12 call mtr.add_suppression("Got error '10923: Table definition contains obsolete data types");
13 --connection server2
14 call mtr.add_suppression("Table upgrade required");
15 call mtr.add_suppression("Table definition contains obsolete data types");
16 call mtr.add_suppression("Failed to create entry in DD");
17 call mtr.add_suppression("Failed to migrate table");
18 call mtr.add_suppression("Failed to install table");
19 call mtr.add_suppression("Got error '10923: Table definition contains obsolete data types");
20 --connection server1
21 --enable_query_log
22
23 # Wait until the following 3 object changes are synced:
24 # Logfile group 'lg'
25 # Tablespace 'ts'
26 # Table 'test.t1'
27 --let $max_wait = 60
28 --source wait_immediate_metadata_sync.inc
29
30 --error ER_NO_SUCH_TABLE
31 SHOW CREATE TABLE t1;
32 SHOW WARNINGS;
33
34 --exec $NDB_DROP_TABLE -d test t1 >> $NDB_TOOLS_OUTPUT
35
36 # Wait until there are no excluded objects
37 --let $max_wait = 30
38 --source wait_immediate_metadata_sync.inc
39
40 ALTER TABLESPACE ts
41 DROP DATAFILE 'datafile.dat';
42 DROP TABLESPACE ts;
43 DROP LOGFILE GROUP lg
44 ENGINE NDB;
45 --remove_file $NDB_TOOLS_OUTPUT