| 1 |
-- source include/have_ndb.inc |
| 2 |
|
| 3 |
echo == 1 ==; |
| 4 |
--exec $NDB_CONFIG --query=type,nodeid,host 2> /dev/null |
| 5 |
|
| 6 |
echo == 2 ==; |
| 7 |
--exec $NDB_CONFIG --query=nodeid,host,DataMemory,IndexMemory --type=ndbd 2> /dev/null |
| 8 |
|
| 9 |
echo == 3 ==; |
| 10 |
--exec $NDB_CONFIG -r \\n -f " " --query=nodeid,host,DataMemory,IndexMemory --type=ndbd 2> /dev/null |
| 11 |
|
| 12 |
echo == 4 ==; |
| 13 |
--exec $NDB_CONFIG --query=nodeid --type=ndbd --host=localhost 2> /dev/null |
| 14 |
|
| 15 |
echo == 5 ==; |
| 16 |
--exec $NDB_CONFIG --query=type,nodeid,host --config-file=$MYSQL_TEST_DIR/suite/ndb/ndb_config_config.ini 2> /dev/null |
| 17 |
|
| 18 |
# End of 4.1 tests |
| 19 |
echo == 6 ==; |
| 20 |
--exec $NDB_CONFIG_EXE --defaults-group-suffix=.jonas --defaults-file=$MYSQL_TEST_DIR/suite/ndb/ndb_config_mycnf1.cnf --query=type,nodeid,host,IndexMemory,DataMemory --mycnf 2> /dev/null |
| 21 |
|
| 22 |
echo == 7 ==; |
| 23 |
--exec $NDB_CONFIG_EXE --defaults-group-suffix=.cluster0 --defaults-file=$MYSQL_TEST_DIR/suite/ndb/ndb_config_mycnf2.cnf --query=type,nodeid,host --mycnf 2> /dev/null |
| 24 |
|
| 25 |
echo == 8 ==; |
| 26 |
--exec $NDB_CONFIG_EXE --defaults-group-suffix=.cluster1 --defaults-file=$MYSQL_TEST_DIR/suite/ndb/ndb_config_mycnf2.cnf --query=type,nodeid,host --mycnf 2> /dev/null |
| 27 |
|
| 28 |
echo == 9 ==; |
| 29 |
--exec $NDB_CONFIG_EXE --defaults-group-suffix=.cluster2 --defaults-file=$MYSQL_TEST_DIR/suite/ndb/ndb_config_mycnf2.cnf --query=type,nodeid,host --mycnf 2> /dev/null |
| 30 |
echo == 10 ==; |
| 31 |
--exec $NDB_CONFIG_EXE --defaults-group-suffix=.cluster2 --defaults-file=$MYSQL_TEST_DIR/suite/ndb/ndb_config_mycnf2.cnf --connections --query=type,nodeid1,nodeid2,group,nodeidserver --mycnf 2> /dev/null |
| 32 |
|
| 33 |
echo == 11 ==; |
| 34 |
--exec $NDB_CONFIG --query=nodeid --host=localhost --config-file=$MYSQL_TEST_DIR/suite/ndb/ndb_config_config.ini 2> /dev/null |
| 35 |
|
| 36 |
echo == 12 ==; |
| 37 |
--exec $NDB_CONFIG --query=nodeid --host=1.2.3.4 --config-file=$MYSQL_TEST_DIR/suite/ndb/ndb_config_config.ini 2> /dev/null |
| 38 |
|
| 39 |
echo == 13 ==; |
| 40 |
--exec $NDB_CONFIG --query=nodeid --host=localhost --config-file=$MYSQL_TEST_DIR/suite/ndb/ndb_config_config.ini 2> /dev/null |
| 41 |
|
| 42 |
echo == 14 == ndb_config --configinfo; |
| 43 |
--exec $NDB_CONFIG --configinfo > /dev/null |
| 44 |
|
| 45 |
echo == 15 == ndb_config --configinfo --xml; |
| 46 |
--exec $NDB_CONFIG --configinfo --xml > /dev/null |
| 47 |
|
| 48 |
echo == 16 == bug44689; |
| 49 |
--exec $NDB_CONFIG_EXE --defaults-file=$MYSQL_TEST_DIR/suite/ndb/ndb_config_mycnf1.cnf --defaults-group-suffix=.bug44689 --query=host --mycnf 2> /dev/null |
| 50 |
|
| 51 |
echo == 17 == bug49400; |
| 52 |
--replace_regex /.*\[ndb_config\]// |
| 53 |
--error 255 |
| 54 |
--exec $NDB_CONFIG --config-file=$MYSQL_TEST_DIR/suite/ndb/bug49400.ini 2>&1 |
| 55 |
|
| 56 |
echo == 18 == bug56185; |
| 57 |
# Read bitmask value and enum from my.cnf |
| 58 |
--exec $NDB_CONFIG_EXE --defaults-file=$MYSQL_TEST_DIR/suite/ndb/ndb_config_mycnf1.cnf --defaults-group-suffix=.bug56185 --query=Arbitration,LockExecuteThreadToCPU --type=ndbd --mycnf |
| 59 |
|
| 60 |
# Read bitmask value and enum from config.ini |
| 61 |
--exec $NDB_CONFIG --config-file=$MYSQL_TEST_DIR/suite/ndb/bug56185.ini --query=Arbitration,LockExecuteThreadToCPU --type=ndbd |
| 62 |
|
| 63 |
echo == 19 == bug12712109; |
| 64 |
--exec $NDB_CONFIG --config-file=$MYSQL_TEST_DIR/suite/ndb/bug12712109.ini --query=OverloadLimit --connections 2>&1 |
| 65 |
|
| 66 |
# Read config generation number from nodes |
| 67 |
# From management server |
| 68 |
--exec $NDB_CONFIG --system --query=ConfigGenerationNumber |
| 69 |
# From a data node |
| 70 |
--exec $NDB_CONFIG --system --config-from-node=2 --query=ConfigGenerationNumber |
| 71 |
|
| 72 |
--echo # |
| 73 |
--echo # Bug#32247424 SHOW CLUSTER CONFIG GENERATION |
| 74 |
--echo # - Config generation number used to configure the NdbApi |
| 75 |
--echo # is available as status variable in mysqld |
| 76 |
--echo # |
| 77 |
SELECT VARIABLE_VALUE FROM performance_schema.global_status |
| 78 |
WHERE VARIABLE_NAME = 'Ndb_config_generation'; |
| 79 |
SHOW STATUS LIKE 'Ndb_config_generation'; |
| 80 |
|
| 81 |
echo == 21 == ThreadConfig; |
| 82 |
--replace_regex /.*\[ndb_config\]// |
| 83 |
--exec $NDB_CONFIG --config-file=$MYSQL_TEST_DIR/suite/ndb/ndb_config_threadconfig.ini --query=NodeId,LockExecuteThreadToCPU,ThreadConfig 2>&1 |
| 84 |
|
| 85 |
echo == 22 == bug14555359; |
| 86 |
# Read ExtraSendBufferMemory from all nodes |
| 87 |
--exec $NDB_CONFIG_EXE --defaults-group-suffix=.bug14555359 --defaults-file=$MYSQL_TEST_DIR/suite/ndb/ndb_config_mycnf1.cnf --query=nodeid,type,ExtraSendBufferMemory --mycnf |
| 88 |
|
| 89 |
echo == 23 == bug18366909; |
| 90 |
# ServerPort and TcpBind_INADDR_ANY didn't show |
| 91 |
--exec $NDB_CONFIG --config-file=$MYSQL_TEST_DIR/suite/ndb/ndb_config_config.ini --query=nodeid,host,ServerPort,TcpBind_INADDR_ANY --type=ndbd 2> /dev/null |
| 92 |
|
| 93 |
echo == 24 == Bug 21280428; |
| 94 |
# Check if removed deprecated config parameters are treated as unknown query options. |
| 95 |
--exec $NDB_CONFIG --query=ByteOrder 2>&1 |
| 96 |
--exec $NDB_CONFIG --query=MaxNoOfIndexes 2>&1 |
| 97 |
--exec $NDB_CONFIG --query=NoOfDiskPagesToDiskDuringRestartTUP 2>&1 |
| 98 |
--exec $NDB_CONFIG --query=NoOfDiskPagesToDiskAfterRestartTUP 2>&1 |
| 99 |
--exec $NDB_CONFIG --query=NoOfDiskPagesToDiskDuringRestartACC 2>&1 |
| 100 |
--exec $NDB_CONFIG --query=NoOfDiskPagesToDiskAfterRestartACC 2>&1 |
| 101 |
--exec $NDB_CONFIG --query=DiskCheckpointSpeed 2>&1 |
| 102 |
--exec $NDB_CONFIG --query=DiskCheckpointSpeedInRestart 2>&1 |
| 103 |
--exec $NDB_CONFIG --query=ReservedSendBufferMemory 2>&1 |
| 104 |
--exec $NDB_CONFIG --query=MaxNoOfSavedEvents 2>&1 |
| 105 |
--exec $NDB_CONFIG --query=Id 2>&1 |
| 106 |
--exec $NDB_CONFIG --query=Discless 2>&1 |
| 107 |
--replace_regex /.*\[ndb_config\]// |
| 108 |
--error 255 |
| 109 |
--exec $NDB_CONFIG --config-file=$MYSQL_TEST_DIR/suite/ndb/bug21280456.ini 2>&1 |
| 110 |
|
| 111 |
echo == 25 == Bug25675643; |
| 112 |
# Check system name |
| 113 |
--exec $NDB_CONFIG --config-file=$MYSQL_TEST_DIR/suite/ndb/ndb_config_config.ini --system --query=name 2>&1 |
| 114 |
|
| 115 |
echo == 26 == Bug32175157; |
| 116 |
--replace_regex /.*\[ndb_config\]// |
| 117 |
--error 255 |
| 118 |
--exec $NDB_CONFIG_EXE --defaults-group-suffix=.bug32175157 --defaults-file=$MYSQL_TEST_DIR/suite/ndb/ndb_config_mycnf1.cnf --mycnf 2>&1 |
| 119 |
|
| 120 |
echo == 27 == Bug32210176; |
| 121 |
--replace_regex /.*\[ndb_config\]// |
| 122 |
--error 255 |
| 123 |
--exec $NDB_CONFIG_EXE --defaults-group-suffix=.bug32210176 --defaults-file=$MYSQL_TEST_DIR/suite/ndb/ndb_config_mycnf1.cnf --mycnf 2>&1 |
| 124 |
|
| 125 |
echo == 28 == Bug32258207; |
| 126 |
--replace_regex /.*\[ndb_config\]// |
| 127 |
--error 255 |
| 128 |
--exec $NDB_CONFIG_EXE --defaults-group-suffix=.bug32258207 --defaults-file=$MYSQL_TEST_DIR/suite/ndb/ndb_config_mycnf1.cnf --mycnf 2>&1 |
| 129 |
|
| 130 |
echo == 29 == Bug32871875; |
| 131 |
--exec $NDB_CONFIG_EXE --defaults-group-suffix=.bug32871875 --defaults-file=$MYSQL_TEST_DIR/suite/ndb/ndb_config_mycnf1.cnf --query=nodeid,host,AutomaticThreadConfig,CompressedLCP --type=ndbd --mycnf 2> /dev/null |
| 132 |
|
| 133 |
echo == 30 ==; |
| 134 |
exec $NDB_CONFIG_EXE --defaults-group-suffix=.bug56185 |
| 135 |
--defaults-file=$MYSQL_TEST_DIR/suite/ndb/ndb_config_mycnf1.cnf |
| 136 |
--mycnf --diff-default --type=DB --rows="\n"; |
| 137 |
|
| 138 |
echo == 31 == ndb_config --config-binary-file=ndb_3_config.bin.1 --system; |
| 139 |
exec $NDB_CONFIG |
| 140 |
--config-binary-file=$MYSQLTEST_VARDIR/mysql_cluster.1/ndb_mgmd.1/ndb_3_config.bin.1 |
| 141 |
--system --query=PrimaryMGMNode; |