Server IP : 172.67.216.182 / Your IP : 172.71.81.133 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 : |
################################################################################ # WL#7660 - GCS PLUGIN IMPLEMENTATION # # This test checks the basic functionality of Group Replication # plugin which should work with the .opt file in which the plugin # options are passed as options. # # Test: # 0. The test requires one server. Set group name on .opt file. # 1. Check group_replication_group_name variable. # 2. Restart M1 with group_replication_start_on_boot=ON. # 3. Try executing START GR command. It should error out stating GR is already # running. # 4. Check that the member information is correct in the P_S table. ################################################################################ --source ../inc/have_group_replication_plugin.inc --source include/force_restart.inc SELECT @@group_replication_group_name; # We need to restart server to simulate start_on_boot option since # on MTR it is impossible to compute ports on configuration files. --let $_group_replication_local_address= `SELECT @@GLOBAL.group_replication_local_address` --let $_group_replication_group_seeds= `SELECT @@GLOBAL.group_replication_group_seeds` --let $_group_replication_group_whitelist= `SELECT @@GLOBAL.group_replication_ip_whitelist` --let $restart_parameters=restart:--group_replication_local_address=$_group_replication_local_address --group_replication_group_seeds=$_group_replication_group_seeds --group_replication_bootstrap_group=1 --group_replication_start_on_boot=1 --group_replication_ip_whitelist=$_group_replication_group_whitelist --replace_result $_group_replication_local_address GROUP_REPLICATION_LOCAL_ADDRESS $_group_replication_group_seeds GROUP_REPLICATION_GROUP_SEEDS $_group_replication_group_whitelist GROUP_REPLICATION_GROUP_WHITELIST --source include/restart_mysqld.inc SELECT @@group_replication_group_name; SELECT @@group_replication_start_on_boot; --error ER_GROUP_REPLICATION_RUNNING START GROUP_REPLICATION; #Check if the member information is correct on the table --let $server_uuid= `SELECT @@GLOBAL.SERVER_UUID` --let $wait_condition= SELECT count(*)=1 FROM performance_schema.replication_group_members WHERE member_id= '$server_uuid' ; --source include/wait_condition.inc --source include/stop_group_replication.inc