-- source include/have_multi_ndb.inc -- source suite/ndb/include/backup_restore_setup.inc --exec $NDB_RESTORE $NDB_RESTORE_NO_ENCR -b 1 -n 1 -p 1 -m -r $NDB_SAVED_BACKUPS/51_dd >> $NDB_TOOLS_OUTPUT --exec $NDB_RESTORE $NDB_RESTORE_NO_ENCR -e -b 1 -n 2 -p 1 -r $NDB_SAVED_BACKUPS/51_dd >> $NDB_TOOLS_OUTPUT --disable_query_log # Suppress expected errors call mtr.add_suppression("Table upgrade required"); call mtr.add_suppression("Table definition contains obsolete data types"); call mtr.add_suppression("Failed to migrate table"); call mtr.add_suppression("Got error '10923: Table definition contains obsolete data types"); --connection server2 call mtr.add_suppression("Table upgrade required"); call mtr.add_suppression("Table definition contains obsolete data types"); call mtr.add_suppression("Failed to create entry in DD"); call mtr.add_suppression("Failed to migrate table"); call mtr.add_suppression("Failed to install table"); call mtr.add_suppression("Got error '10923: Table definition contains obsolete data types"); --connection server1 --enable_query_log # Wait until the following 3 object changes are synced: # Logfile group 'lg' # Tablespace 'ts' # Table 'test.t1' --let $max_wait = 60 --source wait_immediate_metadata_sync.inc --error ER_NO_SUCH_TABLE SHOW CREATE TABLE t1; SHOW WARNINGS; --exec $NDB_DROP_TABLE -d test t1 >> $NDB_TOOLS_OUTPUT # Wait until there are no excluded objects --let $max_wait = 30 --source wait_immediate_metadata_sync.inc ALTER TABLESPACE ts DROP DATAFILE 'datafile.dat'; DROP TABLESPACE ts; DROP LOGFILE GROUP lg ENGINE NDB; --remove_file $NDB_TOOLS_OUTPUT