Server IP : 172.67.216.182 / Your IP : 172.68.164.91 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/src/mysql-test/suite/binlog/t/ |
Upload File : |
############################################################################### # Bug #26272158: FLUSH LOGS SENDS OK EVEN AFTER FAILING IN THE COMMIT PHASE. # # Problem: # ======== # A failing FLUSH LOGS attempts to send OK to connection after # having sent error reply before. This is caused by missing error propagation # between where the error happened (ha_commit_trans inside close_table()) and # where the OK is sent (at the top level switch statement in # mysql_execute_command) # # Test: # ===== # We will activate the debug point "crash_commit_before" this will ensure # that the commit fails for FLUSH LOGS. We will then check if the command # FLUSH LOGS returns an error. ############################################################################### # Don't test this under valgrind, memory leaks will occur --source include/not_valgrind.inc --source include/have_debug.inc --source include/have_gtid.inc # Test in this file is binlog format agnostic, thus no need # to rerun it for every format. --source include/have_binlog_format_row.inc call mtr.add_suppression('Could not open .*'); call mtr.add_suppression("Either disk is full or file system is read only"); call mtr.add_suppression("Attempting backtrace. You can use the following information to find out"); call mtr.add_suppression("Got error .*"); CREATE TABLE t(s INT); INSERT INTO t VALUES(10); # Set the debug option that will simulate crash commit SET GLOBAL debug = '+d,simulate_flush_commit_error'; --error ER_ERROR_DURING_FLUSH_LOGS, ER_BINLOG_LOGGING_IMPOSSIBLE FLUSH LOGS; --exec echo "restart" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect --enable_reconnect --source include/wait_until_connected_again.inc SET GLOBAL debug = '-d,simulate_flush_commit_error'; #cleanup DROP TABLE t;