Server IP : 104.21.38.3 / Your IP : 172.70.208.156 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/binlog/t/ |
Upload File : |
# WL#7742: test case that checks that the option # binlog_group_commit_sync_delay introduces a # delay in the group commit --source include/have_binlog_format_mixed.inc --let $bgcd_saved=`SELECT @@GLOBAL.binlog_group_commit_sync_delay` --let $sync_binlog_saved=`SELECT @@GLOBAL.sync_binlog` --let $delay=1000000 --eval SET GLOBAL binlog_group_commit_sync_delay=$delay SET GLOBAL sync_binlog = 1; SET @clock_in = SYSDATE(); CREATE TABLE t1 (c1 INT) Engine=InnoDB; SET @elapsed = TIMESTAMPDIFF(MICROSECOND, @clock_in, SYSDATE()); --let $assert_text="Assert that the statement never takes less than the delay set." --let $assert_cond= [SELECT @elapsed >= @@GLOBAL.binlog_group_commit_sync_delay] --source include/assert.inc # # Bug#21420180 BINLOG_GROUP_COMMIT_SYNC_DELAY SHOULD BE CONSIDERED ONLY WHEN # SYNCING BINLOG # # Execute 1000 insertions (i.e., 1000 groups , one transaction per group). # Without the fix, it will take 1000 * binlog_group_commit_sync_delay which # is 1000 seconds (> 15 mints). Hence test script will be timed out. # But with fix, it should not take more than few seconds (that depends # on Pb2 machine speed and also depends on various build options too. # --let $group_count=1000 --eval SET GLOBAL sync_binlog=$group_count --let $i=0 SET @clock_in = SYSDATE(); --disable_query_log while ($i <= $group_count) { --eval INSERT INTO t1 VALUES ($i) --inc $i } --enable_query_log SET @elapsed = TIMESTAMPDIFF(MICROSECOND, @clock_in, SYSDATE()); --let $assert_text="Assert that the above statements should not take more than 1000 seconds" --let $assert_cond= [SELECT @elapsed < 1000 * @@GLOBAL.binlog_group_commit_sync_delay] --source include/assert.inc # End of Bug#21420180 test # Cleanup --eval SET GLOBAL binlog_group_commit_sync_delay=$bgcd_saved --eval SET GLOBAL sync_binlog=$sync_binlog_saved DROP TABLE t1;