Server IP : 172.67.216.182 / Your IP : 162.158.171.27 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/mysql-test/suite/ndb/t/ |
Upload File : |
# The include statement below is a temp one for tests that are yet to #be ported to run with InnoDB, #but needs to be kept for tests that would need MyISAM in future. --source include/force_myisam_default.inc --source include/have_ndb.inc --source include/have_log_bin.inc --disable_warnings DROP TABLE IF EXISTS t1; --enable_warnings set @is_enable_default = @@global.ndb_index_stat_enable; let is_table_exists = `select count(*) <> 2 from information_schema.tables where table_name in ('ndb_index_stat_head', 'ndb_index_stat_sample') and table_schema='mysql'`; set @is_enable = 1; source ndb_index_stat_enable.inc; create table t1 ( a int primary key, b int, c int, key t1x1 (b), key t1x2 (c) ) engine=ndb partition by key (a) partitions 1; insert into t1 values (1,1,1),(2,1,1),(3,2,1),(4,2,1); analyze table t1; # put some entries into index stats cache select count(*) from t1 where b = 1; select count(*) from t1 where c = 1; show status like 'ndb_index_stat_cache%'; --echo # restart cluster --initial --exec $NDB_MGM --no-defaults -e "all restart -i -n" >> $NDB_TOOLS_OUTPUT --exec $NDB_WAITER --no-defaults --ndb-connectstring="$NDB_CONNECTSTRING" --not-started >> $NDB_TOOLS_OUTPUT --exec $NDB_MGM --no-defaults -e "all start" >> $NDB_TOOLS_OUTPUT --exec $NDB_WAITER --no-defaults --ndb-connectstring="$NDB_CONNECTSTRING" >> $NDB_TOOLS_OUTPUT --echo # wait for mysqld --disable_query_log --source include/ndb_not_readonly.inc --enable_query_log --error 0,1193 set global ndb_dbg_check_shares=1; --error 0,1051 drop table if exists t1; create table t1 ( a int primary key, b int, c int, key t1x1 (b), key t1x2 (c) ) engine=ndb partition by key (a) partitions 1; insert into t1 values (1,1,1),(2,1,1),(3,2,1),(4,2,1); analyze table t1; # put some entries into index stats cache select count(*) from t1 where b = 1; select count(*) from t1 where c = 1; show status like 'ndb_index_stat_cache%'; drop table t1; set @is_enable = @is_enable_default; source ndb_index_stat_enable.inc; # Ignore the warning generated by ndbcluster's binlog thread # when cluster is restarted --disable_query_log ONCE call mtr.add_suppression("cluster disconnect An incident event has been written"); # Ignore the warning generated by ndbcluster's binlog thread # when cluster is restarted - also on the second mysqld connect(mysqld2,127.0.0.1,root,,test,$MASTER_MYPORT1); connection mysqld2; --disable_query_log ONCE call mtr.add_suppression("cluster disconnect An incident event has been written");