mariadb/mysql-test/suite
Marko Mäkelä 59caf2c3c1 MDEV-13485 MTR tests fail massively with --innodb-sync-debug
The parameter --innodb-sync-debug, which is disabled by default,
aims to find potential deadlocks in InnoDB.

When the parameter is enabled, lots of tests failed. Most of these
failures were due to bogus diagnostics. But, as part of this fix,
we are also fixing a bug in error handling code and removing dead
code, and fixing cases where an uninitialized mutex was being
locked and unlocked.

dict_create_foreign_constraints_low(): Remove an extraneous
mutex_exit() call that could cause corruption in an error handling
path. Also, do not unnecessarily acquire dict_foreign_err_mutex.
Its only purpose is to control concurrent access to
dict_foreign_err_file.

row_ins_foreign_trx_print(): Replace a redundant condition with a
debug assertion.

srv_dict_tmpfile, srv_dict_tmpfile_mutex: Remove. The
temporary file is never being written to or read from.

log_free_check(): Allow SYNC_FTS_CACHE (fts_cache_t::lock)
to be held.

ha_innobase::inplace_alter_table(), row_merge_insert_index_tuples():
Assert that no unexpected latches are being held.

sync_latch_meta_init(): Properly initialize dict_operation_lock_key
at SYNC_DICT_OPERATION. dict_sys->mutex is SYNC_DICT, and
the now-removed SRV_DICT_TMPFILE was wrongly registered at
SYNC_DICT_OPERATION.

buf_block_init(): Correctly register buf_block_t::debug_latch.
It was previously misleadingly reported as LATCH_ID_DICT_FOREIGN_ERR.

latch_level_t: Correct the relative latching order of
SYNC_IBUF_PESS_INSERT_MUTEX,SYNC_INDEX_TREE and
SYNC_FILE_FORMAT_TAG,SYNC_DICT_OPERATION to avoid bogus failures.

row_drop_table_for_mysql(): Avoid accessing btr_defragment_mutex
if the defragmentation thread has not been started. This is the
case during fts_drop_orphaned_tables() in recv_recovery_rollback_active().

fil_space_destroy_crypt_data(): Avoid acquiring fil_crypt_threads_mutex
when it is uninitialized. We may have created crypt_data before the
mutex was created, and the mutex creation would be skipped if
InnoDB startup failed or --innodb-read-only was specified.
2017-08-23 08:44:11 +03:00
..
archive Merge branch '10.1' into 10.2 2017-08-17 11:38:34 +02:00
binlog Merge branch '10.1' into 10.2 2017-08-17 11:38:34 +02:00
binlog_encryption
csv Merge 10.1 into 10.2 2017-05-22 09:46:51 +03:00
encryption MDEV-13559 encryption.innodb-redo-badkey failed in buildbot 2017-08-18 21:42:33 +03:00
engines Follow-up for MDEV-13089 (identifier quoting in partitioning) 2017-07-09 20:38:57 +03:00
federated Merge branch '10.1' into 10.2 2017-08-17 11:38:34 +02:00
funcs_1 un-disable a bunch of funcs_1 tests 2017-08-14 19:45:59 +02:00
funcs_2
galera Fix a test result 2017-08-15 10:51:42 +03:00
galera_3nodes Merge 10.1 into 10.2 2017-06-08 12:45:08 +03:00
gcol gcol.gcol_rollback could fail with errors in server log 2017-08-18 02:48:43 +03:00
handler
heap
innodb MDEV-13485 MTR tests fail massively with --innodb-sync-debug 2017-08-23 08:44:11 +03:00
innodb_fts MDEV-11649 Uninitialized field fts_token->position in innodb_fts.innodb_fts_plugin 2017-06-30 15:03:53 +03:00
innodb_gis Merge branch '10.1' into 10.2 2017-08-17 11:38:34 +02:00
innodb_undo
innodb_zip MDEV-11939: innochecksum mistakes a file for an encrypted one (page 0 invalid) 2017-08-08 09:41:09 +03:00
jp
json
large_tests MDEV-11002 large_tests.rpl_slave_net_timeout fails due to connection logging 2017-06-21 21:07:20 +03:00
maria MDEV-12756 rpl.rpl_killed_ddl fails in buildbot with 'Can't find record' 2017-05-17 00:00:27 +03:00
mariabackup MDEV-13416 mariabackup --backup fails to copy log if LSN is above 4294967295 2017-08-11 16:42:27 +03:00
mtr/t
mtr2
multi_source MDEV-9544 Fix test case for 10.2 2017-06-10 12:57:59 +05:30
optimizer_unfixed_bugs
parts fixes for lower_case_table_names=2 2017-07-09 11:43:42 +02:00
percona
perfschema Merge branch '10.1' into 10.2 2017-08-17 11:38:34 +02:00
perfschema_stress
plugins Support for server error messages in Hindi 2017-08-03 17:31:05 +04:00
roles Merge branch '10.1' into 10.2 2017-07-05 19:08:55 +02:00
rpl Merge branch '10.1' into 10.2 2017-08-17 11:38:34 +02:00
storage_engine Merge branch '10.1' into 10.2 2017-08-17 11:38:34 +02:00
stress
sys_vars Merge branch '10.1' into 10.2 2017-08-17 11:38:34 +02:00
unit
vcol MDEV-13435 Crash when selecting virtual columns generated using JSON functions 2017-08-14 19:45:59 +02:00
wsrep Merge branch '10.1' into 10.2 2017-07-05 19:08:55 +02:00