Server IP : 104.21.38.3 / Your IP : 172.71.124.152 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 ==== # The purpose of this test is to verify that, SHOW PROCESSLIST in Replica # shows null value instead of previously executed command in the INFO section # when slave_sql thread is waiting for updates from the Source. # # ==== Requirements ==== # Replica's slave_sql thread should show null value in the SHOW PROCESSLIST # INFO section when it is waiting for updates from Source, even if the # previoulsy executed query is a rewritten query. # # ==== Implementation ==== # 1. Perform an operation that can cause rewritten query on Source # 2. Verify Replica state and info through 'SHOW PROCESSLIST' # 3. Clean-up # # ==== References ==== # Bug#:30521198: IDLE & CAUGHT UP SLAVE HAS OLD QUERY SHOWN IN "INFO" # SECTION OF PROCESSLIST # ################################################################################ # Test is binlog_format-agnostic --source include/have_binlog_format_row.inc --source include/master-slave.inc --echo --echo ==== Test ==== # Perform an operation that can cause rewritten query on Source CREATE USER IF NOT EXISTS 'user1'@'%' IDENTIFIED WITH 'mysql_native_password'; # Verify replica activity using SHOW PROCESSLIST; --source include/sync_slave_sql_with_master.inc let $show_statement= SHOW PROCESSLIST; let $field= State; let $condition= = 'Slave has read all relay log; waiting for more updates'; --source include/wait_show_condition.inc --let $wait_condition= SELECT COUNT(*)=1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE State='Slave has read all relay log; waiting for more updates' AND INFO IS NULL; --source include/wait_condition.inc --echo --echo ==== Clean up ==== --source include/rpl_connection_master.inc DROP USER IF EXISTS 'user1'@'%'; --source include/rpl_end.inc