Server IP : 104.21.38.3 / Your IP : 162.158.190.123 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/t/ |
Upload File : |
# ==== Purpose ==== # # When binlog is disabled, verify that we can set GTID_NEXT # to 'ANONYMOUS' after the partially failed statement # consumed its 'ANONYMOUS' gtid. # # ==== Implementation ==== # # 1) SET SESSION GTID_NEXT='UUID:GNO'. # 2) When binlog is disabled, verify that we can set GTID_NEXT # to 'ANONYMOUS' after the partially failed statement # consumed its 'ANONYMOUS' gtid. # 3) Execute above three steps for all different types of statements # # ==== References ==== # # Bug#21686749 PARTIALLY FAILED DROP OR ACL STMT FAILS TO CONSUME GTID ON BINLOGLESS SLAVE # See mysql-test/suite/binlog/t/binlog_gtid_next_partially_failed_stmts.test # See mysql-test/suite/binlog/t/binlog_gtid_next_partially_failed_grant.test # See mysql-test/t/no_binlog_gtid_next_partially_failed_stmts.test # See mysql-test/t/no_binlog_gtid_next_partially_failed_stmts_error.test # # Test is not required to run against embedded server --source include/not_embedded.inc # Should be tested against "binlog disabled" server --source include/not_log_bin.inc # Make sure the test is repeatable RESET MASTER; SET GTID_NEXT = 'ANONYMOUS'; CREATE TABLE t1 (a int); # Check-1: DROP TABLE SET GTID_NEXT = 'ANONYMOUS'; --echo # --echo # Execute a partially failed DROP TABLE statement. --echo # --error ER_BAD_TABLE_ERROR DROP TABLE t1, t2; --echo # --echo # The table t1 was dropped, which means DROP TABLE --echo # can be failed partially. --echo # --error ER_NO_SUCH_TABLE SHOW CREATE TABLE t1; --echo # --echo # When binlog is disabled, verify that we can set --echo # GTID_NEXT to 'ANONYMOUS' after the partially failed --echo # DROP TABLE statement consumed its 'ANONYMOUS' gtid. --echo # SET GTID_NEXT = 'ANONYMOUS'; CREATE USER u1@h; # Check-2: DROP USER SET GTID_NEXT = 'ANONYMOUS'; --error ER_CANNOT_USER DROP USER u1@h, u2@h; --echo # --echo # When binlog is disabled, verify that we can set --echo # GTID_NEXT to 'ANONYMOUS' after the partially failed --echo # DROP USER statement consumed its 'ANONYMOUS' gtid. --echo # SET GTID_NEXT = 'ANONYMOUS'; CREATE VIEW v1 as SELECT 1; # Check-3: DROP VIEW SET GTID_NEXT = 'ANONYMOUS'; --error ER_BAD_TABLE_ERROR DROP VIEW v1, v2; --echo # --echo # When binlog is disabled, verify that we can set --echo # GTID_NEXT to 'ANONYMOUS' after the partially failed --echo # DROP USER statement consumed its 'ANONYMOUS' gtid. --echo # SET GTID_NEXT = 'ANONYMOUS';