Server IP : 172.67.216.182 / Your IP : 162.158.88.96 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/r/ |
Upload File : |
call mtr.add_suppression("An error occurred during flush stage of the commit"); call mtr.add_suppression("Attempting backtrace. You can use the following information to find out*"); RESET MASTER; CREATE TABLE t1(i INT); # Case 1 (binlog_error_action = ABORT_SERVER) SET GLOBAL binlog_error_action = ABORT_SERVER; # Case 1.1 CLIENT DISCONNECTION BEGIN; INSERT INTO t1 VALUES (1); SET SESSION debug= "+d,simulate_tmpdir_partition_full"; INSERT INTO t1 VALUES (2); INSERT INTO t1 VALUES (3); ERROR HY000: Error writing file <tmp_file_name> (Errcode: ##) SET SESSION debug= "-d,simulate_tmpdir_partition_full"; # Case 1.2 ROLLBACK BEGIN; INSERT INTO t1 VALUES (1); SET SESSION debug= "+d,simulate_tmpdir_partition_full"; INSERT INTO t1 VALUES (2); INSERT INTO t1 VALUES (3); ERROR HY000: Error writing file <tmp_file_name> (Errcode: ##) ROLLBACK; SET SESSION debug= "-d,simulate_tmpdir_partition_full"; # Case 1.3 COMMIT BEGIN; INSERT INTO t1 VALUES (1); SET SESSION debug= "+d,simulate_tmpdir_partition_full"; INSERT INTO t1 VALUES (2); INSERT INTO t1 VALUES (3); ERROR HY000: Error writing file <tmp_file_name> (Errcode: ##) COMMIT; ERROR HY000: Binary logging not possible. Message: An error occurred during flush stage of the commit. 'binlog_error_action' is set to 'ABORT_SERVER'. Server is being stopped. include/assert_grep.inc [An error occurred during flush stage of the commit. 'binlog_error_action' is set to 'ABORT_SERVER'.] include/assert.inc [Count of elements in t1 should be 0.] include/assert.inc [Query is not binlogged as expected.] TRUNCATE TABLE t1; # Case 2 (binlog_error_action = IGNORE_ERROR) RESET MASTER; SET GLOBAL binlog_error_action= IGNORE_ERROR; BEGIN; INSERT INTO t1 VALUES (1); SET SESSION debug= "+d,simulate_tmpdir_partition_full"; INSERT INTO t1 VALUES (2); INSERT INTO t1 VALUES (3); ERROR HY000: Error writing file <tmp_file_name> (Errcode: ##) COMMIT; Warnings: Error 3 Error writing file MYSQLTEST_VARDIR/tmp/temp_file (Errcode: ##) Error 1026 Error writing file MYSQLTEST_VARDIR/tmp/temp_file (Errcode: ##) SET SESSION debug= "-d,simulate_tmpdir_partition_full"; include/assert.inc [Count of elements in t1 should be 2.] SHOW BINARY LOGS; ERROR HY000: You are not using binary logging include/assert_grep.inc [An error occurred during flush stage of the commit. 'binlog_error_action' is set to 'IGNORE_ERROR'.] # restart include/assert.inc [Count of elements in t1 should be 2.] DROP TABLE t1; RESET MASTER;