403Webshell
Server IP : 172.67.216.182  /  Your IP : 162.158.163.118
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_poll_spin_loops.test
################################################################################
# Verify that group_replication_poll_spin_loops validates its input values.
#
# Test:
# 0. The test requires one server.
# 1. Set invalid values to group_replication_poll_spin_loops. Expect error.
# 2. Set invalid values to group_replication_poll_spin_loops that will be
#    truncated.
# 3. Set valid values to group_replication_poll_spin_loops. Expect success.
# 4. Clean up.
################################################################################
--source ../inc/have_group_replication_plugin.inc
--let $rpl_skip_group_replication_start= 1
--source ../inc/group_replication.inc

SET @group_replication_poll_spin_loops_save= @@GLOBAL.group_replication_poll_spin_loops;


--echo
--echo ############################################################
--echo # 1. Set invalid values to group_replication_poll_spin_loops.
--error ER_WRONG_TYPE_FOR_VAR
SET GLOBAL group_replication_poll_spin_loops= ON;

--error ER_WRONG_TYPE_FOR_VAR
SET GLOBAL group_replication_poll_spin_loops= OFF;

--error ER_WRONG_TYPE_FOR_VAR
SET GLOBAL group_replication_poll_spin_loops= " ";

--error ER_WRONG_TYPE_FOR_VAR
SET GLOBAL group_replication_poll_spin_loops= "a";

--error ER_WRONG_TYPE_FOR_VAR
SET GLOBAL group_replication_poll_spin_loops= 1.0;


--echo
--echo ############################################################
--echo # 2. Set invalid values to group_replication_poll_spin_loops
--echo #    that will be truncated.
SET GLOBAL group_replication_poll_spin_loops= -1;
--let $assert_text= group_replication_poll_spin_loops is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_poll_spin_loops] = 0
--source include/assert.inc

# With a 64 bit mysqld:18446744073709551615, with a 32 bit mysqld: 4294967295
--disable_warnings
SET GLOBAL group_replication_poll_spin_loops= 4294967296;
--enable_warnings
SELECT @@GLOBAL.group_replication_poll_spin_loops IN (4294967296,4294967295);

--disable_warnings
SET GLOBAL group_replication_poll_spin_loops= 12345678901;
--enable_warnings
SELECT @@GLOBAL.group_replication_poll_spin_loops IN (12345678901,4294967295);


--echo
--echo ############################################################
--echo # 3. Set valid values to group_replication_poll_spin_loops.
SET GLOBAL group_replication_poll_spin_loops= 0;
--let $assert_text= group_replication_poll_spin_loops is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_poll_spin_loops] = 0
--source include/assert.inc

SET GLOBAL group_replication_poll_spin_loops= 1;
--let $assert_text= group_replication_poll_spin_loops is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_poll_spin_loops] = 1
--source include/assert.inc

SET GLOBAL group_replication_poll_spin_loops= 65535;
--let $assert_text= group_replication_poll_spin_loops is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_poll_spin_loops] = 65535
--source include/assert.inc

SET GLOBAL group_replication_poll_spin_loops= 4294967295;
--let $assert_text= group_replication_poll_spin_loops is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_poll_spin_loops] = 4294967295
--source include/assert.inc


--echo
--echo ############################################################
--echo # 4. Clean up.
SET GLOBAL group_replication_poll_spin_loops= @group_replication_poll_spin_loops_save;
--source ../inc/group_replication_end.inc

Youez - 2016 - github.com/yon3zu
LinuXploit