Server IP : 172.67.216.182 / Your IP : 172.70.188.62 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/mysql-test/suite/group_replication/t/ |
Upload File : |
# This test does the basic validations around transaction-write-set-extraction # # Test outline # 0) Start the group and save the default values # 1) Test that you cannot change the algorithm while GR is running # 2) Test that you cannot join a group if your algorithm is different. # --source include/only_binlog_transaction_dependency_tracking_commit_order.inc --source ../inc/have_group_replication_plugin.inc --let $rpl_skip_group_replication_start= 1 --source ../inc/group_replication.inc --let $rpl_connection_name= server2 --source include/rpl_connection.inc SET @transaction_write_set_extraction_save= @@GLOBAL.transaction_write_set_extraction; --let $rpl_connection_name= server1 --source include/rpl_connection.inc SET @transaction_write_set_extraction_save= @@GLOBAL.transaction_write_set_extraction; --echo # --echo # 1. Try to change the algorithm while Group Replication is running. --echo # It will be disallowed. --echo # SET GLOBAL transaction_write_set_extraction='MURMUR32'; --let $write_set_algorithm= `SELECT @@GLOBAL.transaction_write_set_extraction` --let $assert_text= transaction_write_set_extraction is correct --let $assert_cond= "$write_set_algorithm"= "MURMUR32" --source include/assert.inc --source ../inc/start_and_bootstrap_group_replication.inc --error ER_GROUP_REPLICATION_RUNNING SET SESSION transaction_write_set_extraction=OFF; --error ER_GROUP_REPLICATION_RUNNING SET SESSION transaction_write_set_extraction='XXHASH64'; --let $write_set_algorithm= `SELECT @@GLOBAL.transaction_write_set_extraction` --let $assert_text= transaction_write_set_extraction is correct --let $assert_cond= "$write_set_algorithm"= "MURMUR32" --source include/assert.inc --echo # --echo # 2. Try to join a member with a different algorithm --echo # It will be disallowed. --echo # --let $rpl_connection_name= server2 --source include/rpl_connection.inc --disable_query_log --eval SET GLOBAL group_replication_group_name= "$group_replication_group_name" --enable_query_log SET GLOBAL transaction_write_set_extraction='XXHASH64'; --error ER_GROUP_REPLICATION_CONFIGURATION START GROUP_REPLICATION; --replace_regex /[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]:[0-9][0-9]\.[0-9][0-9][0-9][0-9][0-9][0-9][-+Z][0-9:]* *[0-9]* *\[/DATE_TIME [/ --let $grep_file=$MYSQLTEST_VARDIR/tmp/group_replication_write_set_extraction_algorithm.err --let $grep_pattern=The member is configured with a transaction-write-set-extraction option value --source include/grep_pattern.inc --echo # --echo # 3. Cleanup --echo # --let $rpl_connection_name= server1 --source include/rpl_connection.inc --source include/stop_group_replication.inc SET GLOBAL transaction_write_set_extraction= @transaction_write_set_extraction_save; --let $rpl_connection_name= server2 --source include/rpl_connection.inc SET GLOBAL transaction_write_set_extraction= @transaction_write_set_extraction_save; --source ../inc/group_replication_end.inc