Server IP : 172.67.216.182 / Your IP : 162.158.108.111 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 : |
# ==== Purpose ==== # # This test will purge old binary log files in the server and # will verify how many events the server will read from the # remaining binary log file. # # ==== Related Bugs and Worklogs ==== # # BUG#23054591 PURGE BINARY LOGS TO IS READING THE WHOLE BINLOG FILE AND # CAUSING MYSQL TO STALL # # This test case is binary log format agnostic --source include/have_debug.inc --source include/have_binlog_format_row.inc # Create a new binary log file FLUSH BINARY LOGS; # Add some events to the new binary log file CREATE TABLE t1 (c1 INT); INSERT INTO t1 VALUES (1); DROP TABLE t1; # Get the current binlog file name --let $binlog_file= query_get_value("SHOW MASTER STATUS", File, 1) # Purge older binary log files --replace_result '$binlog_file' BINLOG_FILE --eval PURGE BINARY LOGS TO '$binlog_file' # File to GREP --let $assert_file=$MYSQLTEST_VARDIR/tmp/binlog_purge_stall.err # Show entries only after the last occurrence of the following pattern --let $assert_only_after=.* \[Note\] .* mysqld: ready for connections # Assert that there is an expected [Note] log line about reading binary log events --let $assert_count= 1 --let $assert_select=.* \[Note\] Read 2 events from binary log file .*$binlog_file --let $assert_text= Only two events were read from the binary log file (binlog_gtid_simple_recovery=TRUE). --source include/assert_grep.inc