Loading mysql-test/ndb/ndb_config_1_node.ini 0 → 100644 +43 −0 Original line number Diff line number Diff line [ndbd default] NoOfReplicas= 1 MaxNoOfConcurrentTransactions= 64 MaxNoOfConcurrentOperations= CHOOSE_MaxNoOfConcurrentOperations DataMemory= CHOOSE_DataMemory IndexMemory= CHOOSE_IndexMemory Diskless= CHOOSE_Diskless TimeBetweenWatchDogCheck= 30000 DataDir= CHOOSE_FILESYSTEM MaxNoOfOrderedIndexes= CHOOSE_MaxNoOfOrderedIndexes MaxNoOfAttributes= CHOOSE_MaxNoOfAttributes TimeBetweenGlobalCheckpoints= 500 NoOfFragmentLogFiles= 3 # # Increase deadlock-timeout to cater for slow test-machines # (possibly running several tests in parallell) # #TransactionDeadlockDetectionTimeout= 7500 [ndbd] HostName= CHOOSE_HOSTNAME_1 # hostname is a valid network adress [ndb_mgmd] HostName= CHOOSE_HOSTNAME_1 # hostname is a valid network adress DataDir= CHOOSE_FILESYSTEM # PortNumber= CHOOSE_PORT_MGM [mysqld] [mysqld] [mysqld] [mysqld] [mysqld] [mysqld] [mysqld] [mysqld] mysql-test/ndb/ndb_config_2_node.ini +10 −0 Original line number Diff line number Diff line [ndbd default] NoOfReplicas= 2 MaxNoOfConcurrentTransactions= 64 MaxNoOfConcurrentOperations= CHOOSE_MaxNoOfConcurrentOperations DataMemory= CHOOSE_DataMemory IndexMemory= CHOOSE_IndexMemory Loading @@ -7,6 +8,15 @@ Diskless= CHOOSE_Diskless TimeBetweenWatchDogCheck= 30000 DataDir= CHOOSE_FILESYSTEM MaxNoOfOrderedIndexes= CHOOSE_MaxNoOfOrderedIndexes MaxNoOfAttributes= CHOOSE_MaxNoOfAttributes TimeBetweenGlobalCheckpoints= 500 NoOfFragmentLogFiles= 3 # # Increase deadlock-timeout to cater for slow test-machines # (possibly running several tests in parallell) # #TransactionDeadlockDetectionTimeout= 7500 [ndbd] HostName= CHOOSE_HOSTNAME_1 # hostname is a valid network adress Loading mysql-test/ndb/ndb_config_4_node.ini 0 → 100644 +52 −0 Original line number Diff line number Diff line [ndbd default] NoOfReplicas= 2 MaxNoOfConcurrentTransactions= 64 MaxNoOfConcurrentOperations= CHOOSE_MaxNoOfConcurrentOperations DataMemory= CHOOSE_DataMemory IndexMemory= CHOOSE_IndexMemory Diskless= CHOOSE_Diskless TimeBetweenWatchDogCheck= 30000 DataDir= CHOOSE_FILESYSTEM MaxNoOfOrderedIndexes= CHOOSE_MaxNoOfOrderedIndexes MaxNoOfAttributes= CHOOSE_MaxNoOfAttributes TimeBetweenGlobalCheckpoints= 500 NoOfFragmentLogFiles= 3 # # Increase deadlock-timeout to cater for slow test-machines # (possibly running several tests in parallell) # #TransactionDeadlockDetectionTimeout= 7500 [ndbd] HostName= CHOOSE_HOSTNAME_1 # hostname is a valid network adress [ndbd] HostName= CHOOSE_HOSTNAME_2 # hostname is a valid network adress [ndbd] HostName= CHOOSE_HOSTNAME_3 # hostname is a valid network adress [ndbd] HostName= CHOOSE_HOSTNAME_4 # hostname is a valid network adress [ndb_mgmd] HostName= CHOOSE_HOSTNAME_1 # hostname is a valid network adress DataDir= CHOOSE_FILESYSTEM # PortNumber= CHOOSE_PORT_MGM [mysqld] [mysqld] [mysqld] [mysqld] [mysqld] [mysqld] [mysqld] [mysqld] mysql-test/ndb/ndbcluster.sh +65 −32 Original line number Diff line number Diff line Loading @@ -63,12 +63,17 @@ stop_ndb= initial_ndb= status_ndb= ndb_diskless=0 ndbd_nodes=2 relative_config_data_dir= opt_core= ndb_no_ord=512 ndb_no_attr=2048 ndb_con_op=105000 ndb_dmem=80M ndb_imem=24M VERBOSE=100 NDB_MGM_EXTRA_OPTS= NDB_MGMD_EXTRA_OPTS= NDBD_EXTRA_OPTS= Loading @@ -89,6 +94,9 @@ while test $# -gt 0; do --debug*) flags_ndb="$flags_ndb $1" ;; --ndbd-nodes=*) ndbd_nodes=`echo "$1" | sed -e "s;--ndbd-nodes=;;"` ;; --status) status_ndb=1 ;; Loading @@ -104,6 +112,9 @@ while test $# -gt 0; do --data-dir=*) fsdir=`echo "$1" | sed -e "s;--data-dir=;;"` ;; --relative-config-data-dir) relative_config_data_dir=1 ;; --port=*) port=`echo "$1" | sed -e "s;--port=;;"` ;; Loading @@ -122,6 +133,12 @@ while test $# -gt 0; do --character-sets-dir=*) CHARSETSDIR=`echo "$1" | sed -e "s;--character-sets-dir=;;"` ;; --core) opt_core="--core" ;; --verbose=*) VERBOSE=`echo "$1" | sed -e "s;--verbose=;;"` ;; -- ) shift; break ;; --* ) $ECHO "Unrecognized option: $1"; exit 1 ;; * ) break ;; Loading @@ -130,9 +147,10 @@ while test $# -gt 0; do done fs_ndb="$fsdir/ndbcluster-$port" config_ini=ndb/ndb_config_${ndbd_nodes}_node.ini NDB_HOME= if [ ! -x "$fsdir" ]; then if [ ! -d "$fsdir" ]; then echo "$fsdir missing" exit 1 fi Loading @@ -148,11 +166,15 @@ if [ ! -x "$exec_waiter" ]; then echo "$exec_waiter missing" exit 1 fi if [ ! -f "$config_ini" ]; then echo "$config_ini missing, unsupported number of nodes" exit 1 fi exec_mgmtclient="$exec_mgmtclient --no-defaults $NDB_MGM_EXTRA_OPTS" exec_mgmtsrvr="$exec_mgmtsrvr --no-defaults $NDB_MGMD_EXTRA_OPTS" exec_ndb="$exec_ndb --no-defaults $NDBD_EXTRA_OPTS --character-sets-dir=$CHARSETSDIR" exec_waiter="$exec_waiter --no-defaults" exec_mgmtclient="$exec_mgmtclient --no-defaults $opt_core $NDB_MGM_EXTRA_OPTS" exec_mgmtsrvr="$exec_mgmtsrvr --no-defaults $opt_core $NDB_MGMD_EXTRA_OPTS" exec_ndb="$exec_ndb --no-defaults $opt_core $NDBD_EXTRA_OPTS --character-sets-dir=$CHARSETSDIR" exec_waiter="$exec_waiter --no-defaults $opt_core" ndb_host="localhost" ndb_mgmd_port=$port Loading Loading @@ -196,18 +218,24 @@ fi # Start management server as deamon # Edit file system path and ports in config file if [ $relative_config_data_dir ] ; then config_fs_ndb="." else config_fs_ndb=$fs_ndb fi if [ $initial_ndb ] ; then rm -f $fs_ndb/ndb_* 2>&1 | cat > /dev/null rm -rf $fs_ndb/ndb_* 2>&1 | cat > /dev/null sed \ -e s,"CHOOSE_MaxNoOfAttributes","$ndb_no_attr",g \ -e s,"CHOOSE_MaxNoOfOrderedIndexes","$ndb_no_ord",g \ -e s,"CHOOSE_MaxNoOfConcurrentOperations","$ndb_con_op",g \ -e s,"CHOOSE_DataMemory","$ndb_dmem",g \ -e s,"CHOOSE_IndexMemory","$ndb_imem",g \ -e s,"CHOOSE_Diskless","$ndb_diskless",g \ -e s,"CHOOSE_HOSTNAME_".*,"$ndb_host",g \ -e s,"CHOOSE_FILESYSTEM","$fs_ndb",g \ -e s,"CHOOSE_FILESYSTEM","$config_fs_ndb",g \ -e s,"CHOOSE_PORT_MGM","$ndb_mgmd_port",g \ < ndb/ndb_config_2_node.ini \ < "$config_ini" \ > "$fs_ndb/config.ini" fi Loading @@ -218,7 +246,7 @@ if ( cd "$fs_ndb" ; $exec_mgmtsrvr -f config.ini ) ; then :; else echo "Unable to start $exec_mgmtsrvr from `pwd`" exit 1 fi if sleep_until_file_created $fs_ndb/ndb_3.pid 120 if sleep_until_file_created $fs_ndb/ndb_`expr $ndbd_nodes + 1`.pid 120 then :; else exit 1 fi Loading @@ -226,38 +254,43 @@ cat `find "$fs_ndb" -name 'ndb_*.pid'` > "$fs_ndb/$pidfile" # Start database node echo "Starting ndbd" ( cd "$fs_ndb" ; $exec_ndb $flags_ndb & ) if sleep_until_file_created $fs_ndb/ndb_1.pid 120 then :; else stop_default_ndbcluster exit 1 id=1 while [ $id -le $ndbd_nodes ] do if [ `expr $VERBOSE \> 1` = 1 ] ; then echo "Starting ndbd $id($ndbd_nodes)" fi cat `find "$fs_ndb" -name 'ndb_*.pid'` > "$fs_ndb/$pidfile" # Start database node echo "Starting ndbd" ( cd "$fs_ndb" ; $exec_ndb $flags_ndb & ) if sleep_until_file_created $fs_ndb/ndb_2.pid 120 if sleep_until_file_created $fs_ndb/ndb_${id}.pid 120 then :; else stop_default_ndbcluster exit 1 fi cat `find "$fs_ndb" -name 'ndb_*.pid'` > "$fs_ndb/$pidfile" id=`expr $id + 1` done # test if Ndb Cluster starts properly if [ `expr $VERBOSE \> 1` = 1 ] ; then echo "Waiting for NDB data nodes to start..." fi if ( $exec_waiter ) | grep "NDBT_ProgramExit: 0 - OK" > /dev/null 2>&1 ; then :; else if [ `expr $VERBOSE \> 0` = 1 ] ; then echo "Ndbcluster startup failed" fi stop_default_ndbcluster exit 1 fi if [ `expr $VERBOSE \> 1` = 1 ] ; then echo "Ok" fi cat `find "$fs_ndb" -name 'ndb_*.pid'` > $fs_ndb/$pidfile if [ `expr $VERBOSE \> 2` = 1 ] ; then status_ndbcluster fi } status_ndbcluster() { Loading ndb/include/kernel/GlobalSignalNumbers.h +5 −5 Original line number Diff line number Diff line Loading @@ -540,13 +540,13 @@ extern const GlobalSignalNumber NO_OF_SIGNAL_NAMES; #define GSN_ABORT_ALL_REF 446 #define GSN_ABORT_ALL_CONF 447 #define GSN_STATISTICS_REQ 448 /* 448 unused - formerly GSN_STATISTICS_REQ */ #define GSN_STOP_ORD 449 #define GSN_TAMPER_ORD 450 #define GSN_SET_VAR_REQ 451 #define GSN_SET_VAR_CONF 452 #define GSN_SET_VAR_REF 453 #define GSN_STATISTICS_CONF 454 /* 451 unused - formerly GSN_SET_VAR_REQ */ /* 452 unused - formerly GSN_SET_VAR_CONF */ /* 453 unused - formerly GSN_SET_VAR_REF */ /* 454 unused - formerly GSN_STATISTICS_CONF */ #define GSN_START_ORD 455 /* 457 unused */ Loading Loading
mysql-test/ndb/ndb_config_1_node.ini 0 → 100644 +43 −0 Original line number Diff line number Diff line [ndbd default] NoOfReplicas= 1 MaxNoOfConcurrentTransactions= 64 MaxNoOfConcurrentOperations= CHOOSE_MaxNoOfConcurrentOperations DataMemory= CHOOSE_DataMemory IndexMemory= CHOOSE_IndexMemory Diskless= CHOOSE_Diskless TimeBetweenWatchDogCheck= 30000 DataDir= CHOOSE_FILESYSTEM MaxNoOfOrderedIndexes= CHOOSE_MaxNoOfOrderedIndexes MaxNoOfAttributes= CHOOSE_MaxNoOfAttributes TimeBetweenGlobalCheckpoints= 500 NoOfFragmentLogFiles= 3 # # Increase deadlock-timeout to cater for slow test-machines # (possibly running several tests in parallell) # #TransactionDeadlockDetectionTimeout= 7500 [ndbd] HostName= CHOOSE_HOSTNAME_1 # hostname is a valid network adress [ndb_mgmd] HostName= CHOOSE_HOSTNAME_1 # hostname is a valid network adress DataDir= CHOOSE_FILESYSTEM # PortNumber= CHOOSE_PORT_MGM [mysqld] [mysqld] [mysqld] [mysqld] [mysqld] [mysqld] [mysqld] [mysqld]
mysql-test/ndb/ndb_config_2_node.ini +10 −0 Original line number Diff line number Diff line [ndbd default] NoOfReplicas= 2 MaxNoOfConcurrentTransactions= 64 MaxNoOfConcurrentOperations= CHOOSE_MaxNoOfConcurrentOperations DataMemory= CHOOSE_DataMemory IndexMemory= CHOOSE_IndexMemory Loading @@ -7,6 +8,15 @@ Diskless= CHOOSE_Diskless TimeBetweenWatchDogCheck= 30000 DataDir= CHOOSE_FILESYSTEM MaxNoOfOrderedIndexes= CHOOSE_MaxNoOfOrderedIndexes MaxNoOfAttributes= CHOOSE_MaxNoOfAttributes TimeBetweenGlobalCheckpoints= 500 NoOfFragmentLogFiles= 3 # # Increase deadlock-timeout to cater for slow test-machines # (possibly running several tests in parallell) # #TransactionDeadlockDetectionTimeout= 7500 [ndbd] HostName= CHOOSE_HOSTNAME_1 # hostname is a valid network adress Loading
mysql-test/ndb/ndb_config_4_node.ini 0 → 100644 +52 −0 Original line number Diff line number Diff line [ndbd default] NoOfReplicas= 2 MaxNoOfConcurrentTransactions= 64 MaxNoOfConcurrentOperations= CHOOSE_MaxNoOfConcurrentOperations DataMemory= CHOOSE_DataMemory IndexMemory= CHOOSE_IndexMemory Diskless= CHOOSE_Diskless TimeBetweenWatchDogCheck= 30000 DataDir= CHOOSE_FILESYSTEM MaxNoOfOrderedIndexes= CHOOSE_MaxNoOfOrderedIndexes MaxNoOfAttributes= CHOOSE_MaxNoOfAttributes TimeBetweenGlobalCheckpoints= 500 NoOfFragmentLogFiles= 3 # # Increase deadlock-timeout to cater for slow test-machines # (possibly running several tests in parallell) # #TransactionDeadlockDetectionTimeout= 7500 [ndbd] HostName= CHOOSE_HOSTNAME_1 # hostname is a valid network adress [ndbd] HostName= CHOOSE_HOSTNAME_2 # hostname is a valid network adress [ndbd] HostName= CHOOSE_HOSTNAME_3 # hostname is a valid network adress [ndbd] HostName= CHOOSE_HOSTNAME_4 # hostname is a valid network adress [ndb_mgmd] HostName= CHOOSE_HOSTNAME_1 # hostname is a valid network adress DataDir= CHOOSE_FILESYSTEM # PortNumber= CHOOSE_PORT_MGM [mysqld] [mysqld] [mysqld] [mysqld] [mysqld] [mysqld] [mysqld] [mysqld]
mysql-test/ndb/ndbcluster.sh +65 −32 Original line number Diff line number Diff line Loading @@ -63,12 +63,17 @@ stop_ndb= initial_ndb= status_ndb= ndb_diskless=0 ndbd_nodes=2 relative_config_data_dir= opt_core= ndb_no_ord=512 ndb_no_attr=2048 ndb_con_op=105000 ndb_dmem=80M ndb_imem=24M VERBOSE=100 NDB_MGM_EXTRA_OPTS= NDB_MGMD_EXTRA_OPTS= NDBD_EXTRA_OPTS= Loading @@ -89,6 +94,9 @@ while test $# -gt 0; do --debug*) flags_ndb="$flags_ndb $1" ;; --ndbd-nodes=*) ndbd_nodes=`echo "$1" | sed -e "s;--ndbd-nodes=;;"` ;; --status) status_ndb=1 ;; Loading @@ -104,6 +112,9 @@ while test $# -gt 0; do --data-dir=*) fsdir=`echo "$1" | sed -e "s;--data-dir=;;"` ;; --relative-config-data-dir) relative_config_data_dir=1 ;; --port=*) port=`echo "$1" | sed -e "s;--port=;;"` ;; Loading @@ -122,6 +133,12 @@ while test $# -gt 0; do --character-sets-dir=*) CHARSETSDIR=`echo "$1" | sed -e "s;--character-sets-dir=;;"` ;; --core) opt_core="--core" ;; --verbose=*) VERBOSE=`echo "$1" | sed -e "s;--verbose=;;"` ;; -- ) shift; break ;; --* ) $ECHO "Unrecognized option: $1"; exit 1 ;; * ) break ;; Loading @@ -130,9 +147,10 @@ while test $# -gt 0; do done fs_ndb="$fsdir/ndbcluster-$port" config_ini=ndb/ndb_config_${ndbd_nodes}_node.ini NDB_HOME= if [ ! -x "$fsdir" ]; then if [ ! -d "$fsdir" ]; then echo "$fsdir missing" exit 1 fi Loading @@ -148,11 +166,15 @@ if [ ! -x "$exec_waiter" ]; then echo "$exec_waiter missing" exit 1 fi if [ ! -f "$config_ini" ]; then echo "$config_ini missing, unsupported number of nodes" exit 1 fi exec_mgmtclient="$exec_mgmtclient --no-defaults $NDB_MGM_EXTRA_OPTS" exec_mgmtsrvr="$exec_mgmtsrvr --no-defaults $NDB_MGMD_EXTRA_OPTS" exec_ndb="$exec_ndb --no-defaults $NDBD_EXTRA_OPTS --character-sets-dir=$CHARSETSDIR" exec_waiter="$exec_waiter --no-defaults" exec_mgmtclient="$exec_mgmtclient --no-defaults $opt_core $NDB_MGM_EXTRA_OPTS" exec_mgmtsrvr="$exec_mgmtsrvr --no-defaults $opt_core $NDB_MGMD_EXTRA_OPTS" exec_ndb="$exec_ndb --no-defaults $opt_core $NDBD_EXTRA_OPTS --character-sets-dir=$CHARSETSDIR" exec_waiter="$exec_waiter --no-defaults $opt_core" ndb_host="localhost" ndb_mgmd_port=$port Loading Loading @@ -196,18 +218,24 @@ fi # Start management server as deamon # Edit file system path and ports in config file if [ $relative_config_data_dir ] ; then config_fs_ndb="." else config_fs_ndb=$fs_ndb fi if [ $initial_ndb ] ; then rm -f $fs_ndb/ndb_* 2>&1 | cat > /dev/null rm -rf $fs_ndb/ndb_* 2>&1 | cat > /dev/null sed \ -e s,"CHOOSE_MaxNoOfAttributes","$ndb_no_attr",g \ -e s,"CHOOSE_MaxNoOfOrderedIndexes","$ndb_no_ord",g \ -e s,"CHOOSE_MaxNoOfConcurrentOperations","$ndb_con_op",g \ -e s,"CHOOSE_DataMemory","$ndb_dmem",g \ -e s,"CHOOSE_IndexMemory","$ndb_imem",g \ -e s,"CHOOSE_Diskless","$ndb_diskless",g \ -e s,"CHOOSE_HOSTNAME_".*,"$ndb_host",g \ -e s,"CHOOSE_FILESYSTEM","$fs_ndb",g \ -e s,"CHOOSE_FILESYSTEM","$config_fs_ndb",g \ -e s,"CHOOSE_PORT_MGM","$ndb_mgmd_port",g \ < ndb/ndb_config_2_node.ini \ < "$config_ini" \ > "$fs_ndb/config.ini" fi Loading @@ -218,7 +246,7 @@ if ( cd "$fs_ndb" ; $exec_mgmtsrvr -f config.ini ) ; then :; else echo "Unable to start $exec_mgmtsrvr from `pwd`" exit 1 fi if sleep_until_file_created $fs_ndb/ndb_3.pid 120 if sleep_until_file_created $fs_ndb/ndb_`expr $ndbd_nodes + 1`.pid 120 then :; else exit 1 fi Loading @@ -226,38 +254,43 @@ cat `find "$fs_ndb" -name 'ndb_*.pid'` > "$fs_ndb/$pidfile" # Start database node echo "Starting ndbd" ( cd "$fs_ndb" ; $exec_ndb $flags_ndb & ) if sleep_until_file_created $fs_ndb/ndb_1.pid 120 then :; else stop_default_ndbcluster exit 1 id=1 while [ $id -le $ndbd_nodes ] do if [ `expr $VERBOSE \> 1` = 1 ] ; then echo "Starting ndbd $id($ndbd_nodes)" fi cat `find "$fs_ndb" -name 'ndb_*.pid'` > "$fs_ndb/$pidfile" # Start database node echo "Starting ndbd" ( cd "$fs_ndb" ; $exec_ndb $flags_ndb & ) if sleep_until_file_created $fs_ndb/ndb_2.pid 120 if sleep_until_file_created $fs_ndb/ndb_${id}.pid 120 then :; else stop_default_ndbcluster exit 1 fi cat `find "$fs_ndb" -name 'ndb_*.pid'` > "$fs_ndb/$pidfile" id=`expr $id + 1` done # test if Ndb Cluster starts properly if [ `expr $VERBOSE \> 1` = 1 ] ; then echo "Waiting for NDB data nodes to start..." fi if ( $exec_waiter ) | grep "NDBT_ProgramExit: 0 - OK" > /dev/null 2>&1 ; then :; else if [ `expr $VERBOSE \> 0` = 1 ] ; then echo "Ndbcluster startup failed" fi stop_default_ndbcluster exit 1 fi if [ `expr $VERBOSE \> 1` = 1 ] ; then echo "Ok" fi cat `find "$fs_ndb" -name 'ndb_*.pid'` > $fs_ndb/$pidfile if [ `expr $VERBOSE \> 2` = 1 ] ; then status_ndbcluster fi } status_ndbcluster() { Loading
ndb/include/kernel/GlobalSignalNumbers.h +5 −5 Original line number Diff line number Diff line Loading @@ -540,13 +540,13 @@ extern const GlobalSignalNumber NO_OF_SIGNAL_NAMES; #define GSN_ABORT_ALL_REF 446 #define GSN_ABORT_ALL_CONF 447 #define GSN_STATISTICS_REQ 448 /* 448 unused - formerly GSN_STATISTICS_REQ */ #define GSN_STOP_ORD 449 #define GSN_TAMPER_ORD 450 #define GSN_SET_VAR_REQ 451 #define GSN_SET_VAR_CONF 452 #define GSN_SET_VAR_REF 453 #define GSN_STATISTICS_CONF 454 /* 451 unused - formerly GSN_SET_VAR_REQ */ /* 452 unused - formerly GSN_SET_VAR_CONF */ /* 453 unused - formerly GSN_SET_VAR_REF */ /* 454 unused - formerly GSN_STATISTICS_CONF */ #define GSN_START_ORD 455 /* 457 unused */ Loading