mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
1bee590347
Removed random failures from test suite mysql-test/extra/rpl_tests/rpl_insert_id_pk.test: Make test predicatable. mysql-test/include/maria_empty_logs.inc: We can't use 'Threads_connected' for syncronization, as the 'check_warnings' thread that just quit may still be counted in 'Threads_connected' Now we just wait until MySQLD answers again, which should be good enough for our purposes mysql-test/suite/binlog/r/binlog_index.result: Updated results file mysql-test/suite/binlog/t/binlog_index-master.opt: Added option file to not get stack traces in .err file. mysql-test/suite/binlog/t/binlog_index.test: Added 'flush tables' to remove warning about crashed suppression file from logs mysql-test/suite/pbxt/r/multi_statement.result: Updated results mysql-test/suite/pbxt/t/multi_statement-master.opt: Added options so that slow query testing makes sense sql/events.cc: Don't write Event Scheduler startup message if warnings are turned off. sql/handler.cc: Removed compiler warning sql/log.cc: Removed compiler warning sql/mysqld.cc: Added option 'test-expect-abort'; If this is set, we don't write message to log in case of 'DBUG_ABORT'. (Gives us smaller, easier to read log files) sql/set_var.cc: Removed compiler warning sql/slave.cc: Removed compiler warning sql/sql_plugin.cc: Don't write warnings about disabled plugin if using --log_warnings=0 storage/xtradb/include/ut0lst.h: Removed compiler warning support-files/compiler_warnings.supp: Supress warning from xtradb
152 lines
4.5 KiB
Text
152 lines
4.5 KiB
Text
call mtr.add_suppression('Attempting backtrace');
|
|
call mtr.add_suppression('MSYQL_BIN_LOG::purge_logs failed to process registered files that would be purged.');
|
|
call mtr.add_suppression('MSYQL_BIN_LOG::open failed to sync the index file');
|
|
call mtr.add_suppression('Turning logging off for the whole duration of the MySQL server process.');
|
|
call mtr.add_suppression('MSYQL_BIN_LOG::purge_logs failed to clean registers before purging logs.');
|
|
flush tables;
|
|
flush logs;
|
|
flush logs;
|
|
flush logs;
|
|
show binary logs;
|
|
Log_name File_size
|
|
master-bin.000001 #
|
|
master-bin.000002 #
|
|
master-bin.000003 #
|
|
master-bin.000004 #
|
|
purge binary logs TO 'master-bin.000004';
|
|
Warnings:
|
|
Warning 1612 Being purged log master-bin.000001 was not found
|
|
*** must show a list starting from the 'TO' argument of PURGE ***
|
|
show binary logs;
|
|
Log_name File_size
|
|
master-bin.000004 #
|
|
reset master;
|
|
flush logs;
|
|
flush logs;
|
|
flush logs;
|
|
*** must be a warning master-bin.000001 was not found ***
|
|
Warnings:
|
|
Warning 1612 Being purged log master-bin.000001 was not found
|
|
*** must show one record, of the active binlog, left in the index file after PURGE ***
|
|
show binary logs;
|
|
Log_name File_size
|
|
master-bin.000004 #
|
|
reset master;
|
|
flush logs;
|
|
flush logs;
|
|
flush logs;
|
|
purge binary logs TO 'master-bin.000002';
|
|
ERROR HY000: Fatal error during log purge
|
|
show warnings;
|
|
Level Code Message
|
|
Warning 1377 a problem with deleting master-bin.000001; consider examining correspondence of your binlog index file to the actual binlog files
|
|
Error 1377 Fatal error during log purge
|
|
reset master;
|
|
# crash_purge_before_update_index
|
|
flush logs;
|
|
SET SESSION debug="+d,crash_purge_before_update_index";
|
|
purge binary logs TO 'master-bin.000002';
|
|
ERROR HY000: Lost connection to MySQL server during query
|
|
SET @index=LOAD_FILE('MYSQLTEST_VARDIR/mysqld.1/data//master-bin.index');
|
|
SELECT @index;
|
|
@index
|
|
master-bin.000001
|
|
master-bin.000002
|
|
master-bin.000003
|
|
|
|
# crash_purge_non_critical_after_update_index
|
|
flush logs;
|
|
SET SESSION debug="+d,crash_purge_non_critical_after_update_index";
|
|
purge binary logs TO 'master-bin.000004';
|
|
ERROR HY000: Lost connection to MySQL server during query
|
|
SET @index=LOAD_FILE('MYSQLTEST_VARDIR/mysqld.1/data//master-bin.index');
|
|
SELECT @index;
|
|
@index
|
|
master-bin.000004
|
|
master-bin.000005
|
|
|
|
# crash_purge_critical_after_update_index
|
|
flush logs;
|
|
SET SESSION debug="+d,crash_purge_critical_after_update_index";
|
|
purge binary logs TO 'master-bin.000006';
|
|
ERROR HY000: Lost connection to MySQL server during query
|
|
SET @index=LOAD_FILE('MYSQLTEST_VARDIR/mysqld.1/data//master-bin.index');
|
|
SELECT @index;
|
|
@index
|
|
master-bin.000006
|
|
master-bin.000007
|
|
|
|
# crash_create_non_critical_before_update_index
|
|
SET SESSION debug="+d,crash_create_non_critical_before_update_index";
|
|
flush logs;
|
|
ERROR HY000: Lost connection to MySQL server during query
|
|
SET @index=LOAD_FILE('MYSQLTEST_VARDIR/mysqld.1/data//master-bin.index');
|
|
SELECT @index;
|
|
@index
|
|
master-bin.000006
|
|
master-bin.000007
|
|
master-bin.000008
|
|
|
|
# crash_create_critical_before_update_index
|
|
SET SESSION debug="+d,crash_create_critical_before_update_index";
|
|
flush logs;
|
|
ERROR HY000: Lost connection to MySQL server during query
|
|
SET @index=LOAD_FILE('MYSQLTEST_VARDIR/mysqld.1/data//master-bin.index');
|
|
SELECT @index;
|
|
@index
|
|
master-bin.000006
|
|
master-bin.000007
|
|
master-bin.000008
|
|
master-bin.000009
|
|
|
|
# crash_create_after_update_index
|
|
SET SESSION debug="+d,crash_create_after_update_index";
|
|
flush logs;
|
|
ERROR HY000: Lost connection to MySQL server during query
|
|
SET @index=LOAD_FILE('MYSQLTEST_VARDIR/mysqld.1/data//master-bin.index');
|
|
SELECT @index;
|
|
@index
|
|
master-bin.000006
|
|
master-bin.000007
|
|
master-bin.000008
|
|
master-bin.000009
|
|
master-bin.000010
|
|
master-bin.000011
|
|
|
|
#
|
|
# This should put the server in unsafe state and stop
|
|
# accepting any command. If we inject a fault at this
|
|
# point and continue the execution the server crashes.
|
|
# Besides the flush command does not report an error.
|
|
#
|
|
# fault_injection_registering_index
|
|
SET SESSION debug="+d,fault_injection_registering_index";
|
|
flush logs;
|
|
SET @index=LOAD_FILE('MYSQLTEST_VARDIR/mysqld.1/data//master-bin.index');
|
|
SELECT @index;
|
|
@index
|
|
master-bin.000006
|
|
master-bin.000007
|
|
master-bin.000008
|
|
master-bin.000009
|
|
master-bin.000010
|
|
master-bin.000011
|
|
master-bin.000012
|
|
|
|
# fault_injection_updating_index
|
|
SET SESSION debug="+d,fault_injection_updating_index";
|
|
flush logs;
|
|
SET @index=LOAD_FILE('MYSQLTEST_VARDIR/mysqld.1/data//master-bin.index');
|
|
SELECT @index;
|
|
@index
|
|
master-bin.000006
|
|
master-bin.000007
|
|
master-bin.000008
|
|
master-bin.000009
|
|
master-bin.000010
|
|
master-bin.000011
|
|
master-bin.000012
|
|
master-bin.000013
|
|
|
|
SET SESSION debug="";
|
|
End of tests
|