Server IP : 172.67.216.182 / Your IP : 172.69.165.76 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_binlog/t/ |
Upload File : |
--source include/have_ndb.inc --source include/have_log_bin.inc --source include/have_debug.inc use test; reset master; create table t1 (a int primary key, b int) engine=ndb; --echo Low level transport test set global debug='+d,ndb_injector_set_event_conflict_flags'; --echo Two inserts to the same table, with nothing else in the epoch, --echo will be grouped together in one binlog event, as the --echo extra row info is the same. insert into test.t1 values (1,1), (2,2); # Wait for epoch boundary --disable_query_log --disable_result_log show binlog events; --enable_result_log --enable_query_log --echo A separate delete. delete from test.t1 where a=2; # Wait for epoch boundary --disable_query_log --disable_result_log show binlog events; --enable_result_log --enable_query_log --disable_query_log let $MYSQLD_DATADIR= `select @@datadir;`; --exec $MYSQL_BINLOG --verbose $MYSQLD_DATADIR/mysqld-bin.000001 > $MYSQLTEST_VARDIR/tmp/ndb_binlog_mysqlbinlog.sql create table raw_binlog_rows (txt varchar(1000)); --eval load data local infile '$MYSQLTEST_VARDIR/tmp/ndb_binlog_mysqlbinlog.sql' into table raw_binlog_rows columns terminated by '\n'; select replace(txt, '\r', '') as txt from raw_binlog_rows where txt like '### Extra row data %'; drop table raw_binlog_rows; --enable_query_log set global debug=''; delete from test.t1; reset master; --echo Specific flag settings test : Reflect set global debug='+d,ndb_set_reflect_anyvalue'; --echo Two inserts to the same table, with nothing else in the epoch, --echo will be grouped together in one binlog event, as the --echo extra row info is the same. insert into test.t1 values (1,1), (2,2); # Wait for epoch boundary --disable_query_log --disable_result_log show binlog events; --enable_result_log --enable_query_log --echo A separate delete. delete from test.t1 where a=2; # Wait for epoch boundary --disable_query_log --disable_result_log show binlog events; --enable_result_log --enable_query_log --disable_query_log let $MYSQLD_DATADIR= `select @@datadir;`; --exec $MYSQL_BINLOG --verbose $MYSQLD_DATADIR/mysqld-bin.000001 > $MYSQLTEST_VARDIR/tmp/ndb_binlog_mysqlbinlog.sql create table raw_binlog_rows (txt varchar(1000)); --eval load data local infile '$MYSQLTEST_VARDIR/tmp/ndb_binlog_mysqlbinlog.sql' into table raw_binlog_rows columns terminated by '\n'; select replace(txt, '\r', '') as txt from raw_binlog_rows where txt like '### Extra row data %'; drop table raw_binlog_rows; --enable_query_log set global debug=''; delete from test.t1; reset master; --echo Specific flag settings test : Refresh set global debug='+d,ndb_set_refresh_anyvalue'; --echo Two inserts to the same table, with nothing else in the epoch, --echo will be grouped together in one binlog event, as the --echo extra row info is the same. insert into test.t1 values (1,1), (2,2); # Wait for epoch boundary --disable_query_log --disable_result_log show binlog events; --enable_result_log --enable_query_log --echo A separate delete. delete from test.t1 where a=2; # Wait for epoch boundary --disable_query_log --disable_result_log show binlog events; --enable_result_log --enable_query_log --disable_query_log let $MYSQLD_DATADIR= `select @@datadir;`; --exec $MYSQL_BINLOG --verbose $MYSQLD_DATADIR/mysqld-bin.000001 > $MYSQLTEST_VARDIR/tmp/ndb_binlog_mysqlbinlog.sql create table raw_binlog_rows (txt varchar(1000)); --eval load data local infile '$MYSQLTEST_VARDIR/tmp/ndb_binlog_mysqlbinlog.sql' into table raw_binlog_rows columns terminated by '\n'; select replace(txt, '\r', '') as txt from raw_binlog_rows where txt like '### Extra row data %'; drop table raw_binlog_rows; --enable_query_log set global debug=''; drop table t1;