Server IP : 104.21.38.3 / Your IP : 104.23.175.216 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 : |
# # The purpose of this test is to demonstrate the capabilities of the # Replication Observers example plugin and to assess its correct functionality # # The plugin is only loaded on slave server to capture relay log notifications. # # Since one wants to test only the hook execution in place, a test # plugin was created to serve those needs. The plugin will print once # if the hook method is executed and the test will verify if the hook # was called. # # This test will use the hooks related with Event control and SQL/IO # thread handling. # - after_reset_slave: Called after a RESET SLAVE is invoked # - thread_start: Called when the IO Thread starts # - before_request_transmit: Called before the slave requests the events # from a master. # - after_read_event: Called after an event is received. # - after_queue_event: Called after an event is queued. # - applier_stop: Called after the SQL Thread is stopped # - thread_stop: Called after the IO Thread is stopped. # --source include/have_replication_observers_example_plugin.inc --source include/not_group_replication_plugin.inc --source include/not_embedded.inc --source include/have_binlog_format_mixed.inc --source include/master-slave.inc --connection slave --echo # --echo # Stop slave and install plugin. --echo # --source include/stop_slave.inc --source include/install_replication_observers_example.inc --echo # --echo # Cause a reset slave notification. --echo # RESET SLAVE; --echo # --echo # Cause a connect notification. --echo # --source include/start_slave.inc --echo # --echo # Execute some transactions on master to cause the other notifications. --echo # --connection master CREATE TABLE t1 (c1 INT) Engine=InnoDB; INSERT t1 VALUES(1); DROP TABLE t1; --source include/sync_slave_sql_with_master.inc --echo # --echo # Stop slave and uninstall plugin. --echo # --source include/stop_slave.inc --source include/uninstall_replication_observers_example.inc --echo # --echo # Verify that all relay hooks were called. --echo # --let $grep_file=$MYSQLTEST_VARDIR/tmp/rpl_replication_observers_example_plugin_io.err --let $grep_pattern=replication_observers_example_plugin:binlog_relay_after_reset_slave --source include/grep_pattern.inc --let $grep_file=$MYSQLTEST_VARDIR/tmp/rpl_replication_observers_example_plugin_io.err --let $grep_pattern=replication_observers_example_plugin:binlog_relay_thread_start --source include/grep_pattern.inc --let $grep_file=$MYSQLTEST_VARDIR/tmp/rpl_replication_observers_example_plugin_io.err --let $grep_pattern=replication_observers_example_plugin:binlog_relay_before_request_transmit --source include/grep_pattern.inc --let $grep_file=$MYSQLTEST_VARDIR/tmp/rpl_replication_observers_example_plugin_io.err --let $grep_pattern=replication_observers_example_plugin:binlog_relay_after_read_event --source include/grep_pattern.inc --let $grep_file=$MYSQLTEST_VARDIR/tmp/rpl_replication_observers_example_plugin_io.err --let $grep_pattern=replication_observers_example_plugin:binlog_relay_after_queue_event --source include/grep_pattern.inc --let $grep_file=$MYSQLTEST_VARDIR/tmp/rpl_replication_observers_example_plugin_io.err --let $grep_pattern=replication_observers_example_plugin:binlog_relay_applier_start --source include/grep_pattern.inc --let $grep_file=$MYSQLTEST_VARDIR/tmp/rpl_replication_observers_example_plugin_io.err --let $grep_pattern=replication_observers_example_plugin:binlog_relay_applier_stop --source include/grep_pattern.inc --let $grep_file=$MYSQLTEST_VARDIR/tmp/rpl_replication_observers_example_plugin_io.err --let $grep_pattern=replication_observers_example_plugin:binlog_relay_thread_stop --source include/grep_pattern.inc --let $rpl_only_running_threads= 1 --source include/rpl_end.inc