Server IP : 172.67.216.182 / Your IP : 162.158.108.53 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/r/ |
Upload File : |
################### Cleanup and server setup ################### # restart:--group_replication_local_address=GROUP_REPLICATION_LOCAL_ADDRESS --group_replication_group_seeds=GROUP_REPLICATION_GROUP_SEEDS --group_replication_ip_whitelist=GROUP_REPLICATION_GROUP_WHITELIST server2 RESET MASTER; server1 RESET MASTER; server1 SET GLOBAL group_replication_group_name= "8a84f397-aaa4-18df-89ab-c70aa9823561"; ################### Test start values ################### include/assert.inc [The value of member_id should be empty before starting group replication] include/assert.inc [The value of view_id should be EMPTY before starting group replication] include/assert.inc [The value of Count_Transactions_in_queue should be 0 before starting group replication] include/assert.inc [The value of Count_Transactions_checked should be 0 before starting group replication] include/assert.inc [The value of Count_conflicts_detected should be 0 before starting group replication] include/assert.inc [The value of Count_Transactions_rows_validating should be 0 before starting group replication] include/assert.inc [The value of Transactions_Committed_all_members should be empty before starting group replication] include/assert.inc [The value of Last_conflict_free_transaction should be 0 before starting group replication] ######################################################## Values being updated after executing some transactions ######################################################## include/start_and_bootstrap_group_replication.inc include/assert.inc [The value of view_id should be a number followed by ONE at group replication start] CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB; INSERT INTO t1 VALUES (2); INSERT INTO t1 VALUES (3); INSERT INTO t1 values (4); STOP SLAVE SQL_THREAD FOR CHANNEL "group_replication_applier"; server2 SET SESSION sql_log_bin= 0; call mtr.add_suppression("The requested GTID 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:1' was already used, the transaction will rollback"); call mtr.add_suppression("The requested GTID 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:2' was already used, the transaction will rollback"); SET SESSION sql_log_bin= 1; include/start_group_replication.inc # Apply some transactions on the first member so that the queue of the second member is not empty. server1 SET GTID_NEXT= 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:1'; INSERT INTO t1 VALUES (5); SET GTID_NEXT= 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:2'; INSERT INTO t1 VALUES (6); SET GTID_NEXT= 'AUTOMATIC'; # Check for the transaction in the applier queue and then unblock the recovery. server2 [ The value of Count_Transactions_in_queue must be 3 when the applier has not processed the transaction queue ] server1 START SLAVE SQL_THREAD FOR CHANNEL "group_replication_applier"; server2 include/gr_wait_for_member_state.inc server1 include/assert.inc [The value of member_id should be equal to server UUID after starting group replication] include/assert.inc [The value of Count_Transactions_checked should be 6 after starting group replication] include/assert.inc [The value of Count_conflicts_detected should be 0 after starting group replication] include/assert.inc [The value of Count_Transactions_rows_validating should be 6 after starting group replication] include/assert.inc [The value of Transactions_committed_all_members should have server 1 GTIDs before server2 start] include/assert.inc [The value of Last_Conflict_free_transaction should be the gtid of the last applied transaction.] SET SESSION sql_log_bin= 0; include/gtid_utils.inc SET SESSION sql_log_bin= 1; [ The value of stable_set must be equal to the member GTID executed set ] include/assert.inc ['Transactions_committed_all_members must be equal to expected gtid value'] SET SESSION sql_log_bin= 0; include/gtid_utils_end.inc SET SESSION sql_log_bin= 1; include/diff_tables.inc [server1:t1, server2:t1] DROP TABLE t1; #################################### The values being checked after stop #################################### include/stop_group_replication.inc include/stop_group_replication.inc