Server IP : 172.67.216.182 / Your IP : 172.69.176.167 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/innodb_undo/t/ |
Upload File : |
# # WL#6965: Truncate UNDO logs. # --source include/have_innodb.inc # this is must to ensure that trx_purge_truncate is called with increased # frequency so that undo logs are cleared. --source include/have_debug.inc # We are printing size of undo log below and if page size keeps on # varying then initial size too keeps on varying. --source include/have_innodb_16k.inc --source include/have_undo_tablespaces.inc # Valgrind would complain about memory leaks when we crash on purpose. --source include/not_valgrind.inc # Embedded server does not support crashing --source include/not_embedded.inc # Avoid CrashReporter popup on Mac --source include/not_crashrep.inc --source include/big_test.inc ################################################################################ # Test-case will test following scenarios. # # 1. Different Crash Scenario. # a. before log-checkpoint. # b. after checkpoint before ddl log. # c. after ddl log before truncate. # d. after truncate before ddl log is removed. # e. after truncate is complete (including ddl log removal). # ################################################################################ #----------------------------------------------------------------------------- # # create test-bed # let SEARCH_FILE = $MYSQLTEST_VARDIR/log/mysqld.1.err; --let $_server_id= `SELECT @@server_id` --let $_expect_file_name= $MYSQLTEST_VARDIR/tmp/mysqld.$_server_id.expect # delimiter |; CREATE PROCEDURE populate_t1() BEGIN DECLARE i INT DEFAULT 1; while (i <= 40000) DO insert into t1 values (i, 'a', 'b'); SET i = i + 1; END WHILE; END | delimiter ;| #----------------------------------------------------------------------------- # # 1. Different Crash Scenario. # a. before log-checkpoint. # b. after checkpoint before ddl log. # c. after ddl log before truncate. # d. after truncate before ddl log is removed. # e. after truncate is complete (including ddl log removal). # let $debug_point="+d,ib_undo_trunc_before_checkpoint"; let SEARCH_PATTERN = ib_undo_trunc_before_checkpoint; --source suite/innodb_undo/include/undo_log_trunc_recv.inc # # let $debug_point="+d,ib_undo_trunc_before_ddl_log_start"; let SEARCH_PATTERN = ib_undo_trunc_before_ddl_log_start; --source suite/innodb_undo/include/undo_log_trunc_recv.inc # # let $debug_point="+d,ib_undo_trunc_before_truncate"; let SEARCH_PATTERN = ib_undo_trunc_before_truncate; --source suite/innodb_undo/include/undo_log_trunc_recv.inc # # let $debug_point="+d,ib_undo_trunc_before_ddl_log_end"; let SEARCH_PATTERN = ib_undo_trunc_before_ddl_log_end; --source suite/innodb_undo/include/undo_log_trunc_recv.inc # # let $debug_point="+d,ib_undo_trunc_trunc_done"; let SEARCH_PATTERN = ib_undo_trunc_trunc_done; --source suite/innodb_undo/include/undo_log_trunc_recv.inc #----------------------------------------------------------------------------- # # remove test-bed # drop PROCEDURE populate_t1;