Server IP : 104.21.38.3 / Your IP : 172.68.164.118 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 : |
# # Check what happens when there is an error with parameters provided # to MASTER_POS_WAIT and when it timeouts. # --source include/not_group_replication_plugin.inc source include/master-slave.inc; --source include/sync_slave_sql_with_master.inc # Bug#18259359 # To fix sporadic failure due to improper cleanup. let $rpl_server_number= 1; source include/rpl_restart_server.inc; let $rpl_server_number= 2; source include/rpl_restart_server.inc; --connection slave --source include/start_slave.inc # # MASTER_POS_WAIT: Check if time-out is correctly handled. # select master_pos_wait('master-bin.999999',0,2); explain extended select master_pos_wait('master-bin.999999',0,2); # # MASTER_POS_WAIT (BUG#651): Check if it hangs when slave is # idle and STOP SLAVE is issued. # send select master_pos_wait('master-bin.999999',0); connection slave1; stop slave sql_thread; connection slave; reap; # # MASTER_POS_WAIT (BUG#26622): it does not work as documented # connection master; echo "*** must be empty ***"; query_vertical show slave status; echo "*** must be NULL ***"; select master_pos_wait('foo', 98); # # Bug#24976304 WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS TIMEOUT VALUE HANDLES SOME # INPUTS BADLY # connection slave; --source include/start_slave_sql.inc --echo Test MASTER_POS_WAIT function with negative timeout value. --echo When SQL_MODE is strict, then it will throw WRONG_ARGUMENTS --echo error. SET @save_sql_mode=@@SESSION.SQL_MODE; SET @@SESSION.SQL_MODE="STRICT_ALL_TABLES"; --error ER_WRONG_ARGUMENTS SELECT MASTER_POS_WAIT('master-bin.999999', 4, -1); #--echo When SQL_MODE is non-strict mode, then it will return NULL immediately #--echo without doing any work and generates WRONG_ARGUMENTS warning. SET @@SESSION.SQL_MODE=""; SELECT MASTER_POS_WAIT('master-bin.999999', 4, -1); SET @@SESSION.SQL_MODE=@save_sql_mode; --echo Test WAIT_FOR_EXECUTED_GTID_SET function with fractional timeout value. --echo Earlier(before fix), 0.4 is read as integer value '0' and the function --echo hanged forever (or till all the specified gtids are executed). --echo Now(after fix) 0.4 will be read as doube 0.4 and will waitfor --echo atleast 0.4 seconds (or till all the specified gtids are executed). --echo Also check that in case of timeout, function returns -1. --let $assert_text= MASTER_POS_WAIT returns -1 if the timeout has been exceeded. --let $query_result= query_get_value("SELECT MASTER_POS_WAIT('master-bin.999999', 4, 0.4) AS VALUE", VALUE, 1) --let $assert_cond= "$query_result" = "-1" --source include/assert.inc # End of Test Bug#24976304 # End of 4.1 tests --let $rpl_only_running_threads= 1 --source include/rpl_end.inc