403Webshell
Server IP : 104.21.38.3  /  Your IP : 172.68.164.11
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/binlog/t/binlog_check_flush_log_assertion.test
# ==== Purpose ====
#
# Verify that 'FLUSH LOGS' does not cause assertion failure any more,
# even if there is no binlog file before executing it.
#
# ==== Implementation ====
#
# 1) SET GLOBAL debug='d,error_unique_log_filename' to
#    cause 'FLUSH LOGS' and 'RESET MASTER' commands to error out.
# 2) Execute 'FLUSH LOGS' to verify that it does not cause
#    assertion failure any more.
#
# ==== References ====
#
# Bug#20592961: 'FLUSH LOGS' POST FAULT INJECTION HITS ASSERT `! IS_SET()' AT SQL_ERROR.CC:381
# Bug#29201665: ASAN MEMORY LEAK IN LOG_EVENT::WRITE_HEADER() IN MYSQL-5.7

# Test in this file is binlog format agnostic, thus no need
# to rerun them for every format.
--source include/have_binlog_format_row.inc
--source include/have_debug.inc

--disable_query_log
call mtr.add_suppression("Can't generate a unique log-filename");
call mtr.add_suppression("MYSQL_BIN_LOG::open failed to generate new file name.");
call mtr.add_suppression("Failed to locate old binlog or relay log files");
call mtr.add_suppression('Could not open .*');
--enable_query_log
SET GLOBAL binlog_error_action= IGNORE_ERROR;
--let $debug_point= error_unique_log_filename
--source include/add_debug_point.inc

--error ER_NO_UNIQUE_LOGFILE
FLUSH LOGS;

# Restart the server to enable binary log.
--source include/restart_mysqld.inc
SET GLOBAL binlog_error_action= IGNORE_ERROR;
--source include/add_debug_point.inc

--error ER_NO_UNIQUE_LOGFILE
RESET MASTER;

--source include/remove_debug_point.inc

--error ER_UNKNOWN_TARGET_BINLOG
RESET MASTER;
SET GLOBAL binlog_error_action= ABORT_SERVER;

# Verify that 'FLUSH LOGS' does not cause assertion failure any more,
# even if there is no binlog before executing it.
FLUSH LOGS;

Youez - 2016 - github.com/yon3zu
LinuXploit