| 1 |
--echo Bug #11764714 - Adding --connect-retry-delay and --connect-retries options to tools |
| 2 |
|
| 3 |
--source include/have_ndb.inc |
| 4 |
--source suite/ndb/include/backup_restore_setup.inc |
| 5 |
|
| 6 |
--echo Testing ndbinfo_select_all |
| 7 |
--error 1 |
| 8 |
--exec $NDBINFO_SELECT_ALL test --ndb-connectstring=no_such_host --connect-retry-delay=1 --connect-retries=3 |
| 9 |
|
| 10 |
--echo Testing ndb_mgm |
| 11 |
--error 255 |
| 12 |
--exec $NDB_MGM --ndb-connectstring=no_such_host --connect-retry-delay=1 --connect-retries=3 -e'show'; |
| 13 |
|
| 14 |
--echo Testing ndb_blob_tool |
| 15 |
--error 1 |
| 16 |
--exec $NDB_BLOB_TOOL --check-orphans --verbose -d test t --ndb-connectstring=no_such_host --connect-retry-delay=1 --connect-retries=3 |
| 17 |
|
| 18 |
--echo Testing ndb_config |
| 19 |
--error 255 |
| 20 |
--exec $NDB_CONFIG --ndb-connectstring=no_such_host --connect-retry-delay=1 --connect-retries=3 |
| 21 |
|
| 22 |
--echo Testing ndb_delete_all |
| 23 |
--error 1 |
| 24 |
--exec $NDB_DELETE_ALL --ndb-connectstring=no_such_host --connect-retry-delay=1 --connect-retries=3 |
| 25 |
|
| 26 |
--echo Testing ndb_desc |
| 27 |
--error 1 |
| 28 |
--exec $NDB_DESC --ndb-connectstring=no_such_host --connect-retry-delay=1 --connect-retries=3 |
| 29 |
|
| 30 |
--echo Testing ndb_drop_index |
| 31 |
--error 1 |
| 32 |
--exec $NDB_DROP_INDEX --ndb-connectstring=no_such_host --connect-retry-delay=1 --connect-retries=3 -dtest t idx1 |
| 33 |
|
| 34 |
--echo Testing ndb_drop_table |
| 35 |
--error 1 |
| 36 |
--exec $NDB_DROP_TABLE --ndb-connectstring=no_such_host --connect-retry-delay=1 --connect-retries=3 -dtest t |
| 37 |
|
| 38 |
--echo Testing ndb_index_stat |
| 39 |
--error 1 |
| 40 |
--exec $NDB_INDEX_STAT -dtest t --ndb-connectstring=no_such_host --connect-retry-delay=1 --connect-retries=3 |
| 41 |
|
| 42 |
|
| 43 |
--echo Testing ndb_restore |
| 44 |
CREATE TABLE t1 (col1 int)engine=ndb; |
| 45 |
--source include/ndb_backup.inc |
| 46 |
drop table t1; |
| 47 |
--exec $NDB_RESTORE --connect-retry-delay=1 --connect-retries=3 -b $the_backup_id -n 1 -m --print_meta $NDB_BACKUPS-$the_backup_id >> $NDB_TOOLS_OUTPUT |
| 48 |
--exec $NDB_RESTORE --connect-retry-delay=1 --connect-retries=3 -b $the_backup_id -n 1 -r --print_meta $NDB_BACKUPS-$the_backup_id >> $NDB_TOOLS_OUTPUT |
| 49 |
--exec $NDB_RESTORE --connect-retry-delay=1 --connect-retries=3 -b $the_backup_id -n 2 -r --print_meta $NDB_BACKUPS-$the_backup_id >> $NDB_TOOLS_OUTPUT |
| 50 |
drop table t1; |
| 51 |
|
| 52 |
--echo Testing ndb_select_all |
| 53 |
--error 1 |
| 54 |
--exec $NDB_SELECT_ALL -dtest t --ndb-connectstring=no_such_host --connect-retry-delay=1 --connect-retries=3 |
| 55 |
|
| 56 |
--echo Testing ndb_select_count |
| 57 |
--error 1 |
| 58 |
--exec $NDB_SELECT_COUNT -dtest t --ndb-connectstring=no_such_host --connect-retry-delay=1 --connect-retries=3 |
| 59 |
|
| 60 |
--echo Testing ndb_show_tables |
| 61 |
--error 1 |
| 62 |
--exec $NDB_SHOW_TABLES --ndb-connectstring=no_such_host --connect-retry-delay=1 --connect-retries=3 |
| 63 |
--echo |
| 64 |
|
| 65 |
--echo Testing ndb_waiter |
| 66 |
--replace_regex /localhost:[0-9]*/localhost:<MGMD-PORT>/ |
| 67 |
--exec $NDB_WAITER --verbose=2 |
| 68 |
--replace_regex /line.*/line=no_such_host/ |
| 69 |
--error 3 |
| 70 |
--exec $NDB_WAITER --verbose=2 --ndb-connectstring=no_such_host --connect-retry-delay=1 --connect-retries=3 |
| 71 |
|
| 72 |
--source suite/ndb/include/backup_restore_cleanup.inc |
| 73 |
--remove_file $NDB_TOOLS_OUTPUT |