Server IP : 104.21.38.3 / Your IP : 162.158.162.54 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 will create in parallel, in the same member, two transactions # with two different clients. # # The success of this test is determined by its termination. Any failure # in the parallelism of a transaction shall hang this test. # # Test: # 0. The test requires one server. # 1. With member ONLINE. Create a table t1. # 2. Creating several entries in parallel in the same table. # 3. Test if one succeeded creating all entries in the test. # 4. Clean up. ################################################################################ --source ../inc/have_group_replication_plugin.inc --source ../inc/group_replication.inc CREATE TABLE t1 (a INT AUTO_INCREMENT, PRIMARY KEY (a), b int) engine=InnoDB; --source include/rpl_sync.inc --connection server1 --echo # --echo # Creating several entries in parallel in the same table --echo # --disable_query_log --let $entries=50 while($entries > 0) { --connection server1 --send INSERT INTO t1 (b) VALUES(1) --connection master --send INSERT INTO t1 (b) VALUES(2) --connection server1 --reap --connection master --reap --dec $entries } --enable_query_log --echo # --echo # Test if one succeeded creating all entries in the test. --echo # --let $assert_text= Table t1 must have 100 entries --let $assert_cond= "[SELECT COUNT(*) AS count FROM t1, count, 1]" = "100" --source include/assert.inc --connection server1 DROP TABLE t1; --source ../inc/group_replication_end.inc