403Webshell
Server IP : 172.67.216.182  /  Your IP : 172.71.124.170
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/mysql-test/suite/group_replication/t/gr_uninstall_install_plugin.test
################################################################################
# This test does basic check around UNINSTALL and INSTALL PLUGIN commands.
#
# Test:
# 0. The test requires one server.
# 1. Bootstrap start GR.
#  - Verify that GR specific two P_S tables are not empty.
# 2. Uninstall plugin.
#  - Then uninstall it again twice; expect ER_SP_DOES_NOT_EXIST.
#  - Verify that GR specific two P_S tables are empty.
# 3. Install plugin.
#  - Then try installing it again twice; expect ER_UDF_EXISTS.
#  - Verify that GR specific two P_S tables are are not empty.
################################################################################
--source include/force_restart.inc
--source ../inc/have_group_replication_plugin_base.inc
--source ../inc/have_group_replication_plugin.inc
--let $rpl_skip_group_replication_start= 1
--source ../inc/group_replication.inc

--echo
--echo # 1. Bootstrap start GR.
--echo #    Verify that group replication specific P_S tables are not empty.
--let $rpl_connection_name= server1
--source include/rpl_connection.inc
--source ../inc/start_and_bootstrap_group_replication.inc

--let $assert_text= P_S table replication_group_members should not be empty
--let $assert_cond= "[SELECT COUNT(*) FROM performance_schema.replication_group_members]" = 1
--source include/assert.inc

--let $assert_text= P_S table replication_group_member_stats should not be empty
--let $assert_cond= "[SELECT COUNT(*) FROM performance_schema.replication_group_member_stats]" = 1
--source include/assert.inc

--echo
--echo # 2. Uninstall plugin.
--echo #    Then uninstall it again twice; expect ER_SP_DOES_NOT_EXIST.
--echo #    Verify that group replication specific P_S tables are empty.
UNINSTALL PLUGIN group_replication;

--error ER_SP_DOES_NOT_EXIST
UNINSTALL PLUGIN group_replication;

--let $assert_text= P_S table replication_group_members should be empty
--let $assert_cond= "[SELECT COUNT(*) FROM performance_schema.replication_group_members]" = 0
--source include/assert.inc

--let $assert_text= P_S table replication_group_member_stats should be empty
--let $assert_cond= "[SELECT COUNT(*) FROM performance_schema.replication_group_member_stats]" = 0
--source include/assert.inc

--echo
--echo # 3. Install plugin.
--echo #    Then Install it again twice; expect ER_UDF_EXISTS.
--echo #    Verify that GR specific two P_S tables are are not empty.
--replace_result $GROUP_REPLICATION GROUP_REPLICATION
--eval INSTALL PLUGIN group_replication SONAME '$GROUP_REPLICATION'

--replace_result $GROUP_REPLICATION GROUP_REPLICATION
--error ER_UDF_EXISTS
--eval INSTALL PLUGIN group_replication SONAME '$GROUP_REPLICATION'

--let $assert_text= P_S table replication_group_members should not be empty
--let $assert_cond= "[SELECT COUNT(*) FROM performance_schema.replication_group_members]" = 1
--source include/assert.inc

--let $assert_text= P_S table replication_group_member_stats should not be empty
--let $assert_cond= "[SELECT COUNT(*) FROM performance_schema.replication_group_member_stats]" = 1
--source include/assert.inc

--source ../inc/group_replication_end.inc

Youez - 2016 - github.com/yon3zu
LinuXploit