Server IP : 172.67.216.182 / Your IP : 162.158.106.7 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/rpl/t/ |
Upload File : |
# ==== Purpose ==== # # Verify that we can skip an incident event by setting --slave-skip-errors=1590 # on slave. # # ==== Implementation ==== # # 1. a single statement on non-transactional table causes to log an incident # event with an unique gtid due to the fact that the stmt_cache is not # big enough to accommodate the changes. # # 2. sync slave sql with master to verify that we can skip the incident event # by setting --slave-skip-errors=1590 on slave. # # ==== References ==== # # Bug #26266758 SKIPPING MYSQL SLAVE ERROR CODE 1590 (ER_SLAVE_INCIDENT) DOES NOT WORK # See mysql-test/suite/rpl/t/rpl_skip_incident_error_cross.test --source include/not_group_replication_plugin.inc # Test in this file is binlog format agnostic, thus no need # to rerun it for every format. --source include/have_binlog_format_row.inc --source include/have_myisam.inc --source include/master-slave.inc call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT"); call mtr.add_suppression("Slave SQL for channel '': The incident LOST_EVENTS occured on the master."); call mtr.add_suppression("The content of the statement cache is corrupted " "while writing a rollback record of the transaction " "to the binary log. An incident event has been " "written to the binary log which will stop the " "slaves."); --let $old_max_binlog_stmt_cache_size= query_get_value(SHOW VARIABLES LIKE "max_binlog_stmt_cache_size", Value, 1) --let $old_binlog_stmt_cache_size= query_get_value(SHOW VARIABLES LIKE "binlog_stmt_cache_size", Value, 1) SET GLOBAL max_binlog_stmt_cache_size = 4096; SET GLOBAL binlog_stmt_cache_size = 4096; --disconnect master --connect(master,127.0.0.1,root,,test,$MASTER_MYPORT,) --let $data= `SELECT CONCAT('"', repeat('a',2000), '"')` CREATE TABLE t1(c1 INT PRIMARY KEY, data TEXT(30000)) ENGINE=MyIsam; --let $saved_master_pos=query_get_value('SHOW MASTER STATUS', Position, 1) --echo # --echo # A single statement on non-transactional table causes to log an incident --echo # event with an unique gtid due to the fact that the stmt_cache is not --echo # big enough to accommodate the changes. --echo # --disable_query_log --error ER_STMT_CACHE_FULL, ER_ERROR_ON_WRITE eval INSERT INTO t1 (c1, data) VALUES (1, CONCAT($data, $data, $data, $data, $data, $data)); --enable_query_log --let $binlog_start= $saved_master_pos --source include/show_binlog_events.inc INSERT INTO t1 (c1, data) VALUES (2, 'b'); --echo # --echo # Verify that we can skip the incident event by setting --echo # --slave-skip-errors=1590 on slave. --echo # --source include/sync_slave_sql_with_master.inc # Cleanup --source include/rpl_connection_master.inc DROP TABLE t1; --replace_result $old_max_binlog_stmt_cache_size ORIGINAL_VALUE --eval SET GLOBAL max_binlog_stmt_cache_size= $old_max_binlog_stmt_cache_size --replace_result $old_binlog_stmt_cache_size ORIGINAL_VALUE --eval SET GLOBAL binlog_stmt_cache_size= $old_binlog_stmt_cache_size --source include/rpl_end.inc