mariadb/mysql-test/suite
Sergei Golubchik f8320210e7 MDEV-7126 replication slave - deadlock in terminate_slave_thread with stop slave and show variables of replication filters and show global status
Three-way deadlock:

  T1: SHOW GLOBAL STATUS
      -> acquire LOCK_status
  T2: STOP SLAVE
      -> acquire LOCK_active_mi
      -> terminate_slave_thread()
      -> -> cond_timedwait for handle_slave_sql to stop
  T3: sql slave thread (same applies to io thread)
      -> handle_slave_sql(), when exiting
      -> -> THD::add_status_to_global()
      -> -> -> wait for LOCK_status...
  T1: SHOW GLOBAL STATUS
      -> for "Slave_heartbeat_period" status variable
      -> -> show_heartbeat_period()
      -> -> -> wait for LOCK_active_mi

cherry-pick from 5.6:

  commit fc8b395898f40387b3468122bd0dae31e29a6fde
  Author: Venkatesh Duggirala <venkatesh.duggirala@oracle.com>
  Date:   Wed Jun 12 21:41:05 2013 +0530

    BUG#16904035-SHOW STATUS - EXCESSIVE LOCKING ON LOCK_ACTIVE_MI AND
    ACTIVE_MI->RLI->DATA_LOCK

    Problem: Excessive locking on lock_active_mi and rli->data_lock
    while executing any `show status like 'X'` command.

    Analysis: SHOW_FUNCs for Slave_running, Slave_retried_transactions,
    Slave_heartbeat_period, Slave_received_heartbeats,
    Slave_last_heartbeat are acquiring lock_active_mi and rli->data_lock
    to show their variable value. It is ok to show stale data while showing
    the status variables i.e., even if they miss one update, it will
    not cause any great trouble.

    Fix: Remove the locks from the above mentioned SHOW_FUNC functions.

Add a test case
2015-04-26 22:05:33 +02:00
..
archive mysql-5.5.39 merge 2014-08-02 21:26:16 +02:00
binlog Merge remote-tracking branch 'mysql/5.5' into bb-5.5-merge @ mysql-5.5.42 2015-02-11 23:50:40 +01:00
csv automatic merge 2012-05-03 16:00:41 +03:00
engines MDEV-6378 mtr engines iuds time tests fail 2014-07-28 13:31:46 +04:00
federated different fix for internal Oracle MySQL bug#16324629 that doesn't crash 2014-02-17 11:09:33 +01:00
funcs_1 MDEV-6528 review debian patches for mysql 2014-10-02 11:58:24 +02:00
funcs_2 overlay support for mysql-test-run and mysqltest 2012-02-23 07:50:11 +01:00
handler MySQL-5.5.35 merge 2014-01-22 15:29:36 +01:00
heap MDEV-4813 Replication fails on updating a MEMORY table with an index using btree 2014-10-07 10:54:14 +02:00
innodb MDEV-7672: Crash creating an InnoDB table with foreign keys 2015-03-06 11:19:23 +02:00
innodb_zip MySQL-5.5.36 merge 2014-02-17 11:00:51 +01:00
jp overlay support for mysql-test-run and mysqltest 2012-02-23 07:50:11 +01:00
large_tests
manual
maria MDEV-4010 Deadlock on concurrent INSERT .. SELECT into an Aria table with statement binary logging 2014-12-15 14:49:23 +02:00
mtr/t overlay support for mysql-test-run and mysqltest 2012-02-23 07:50:11 +01:00
mtr2 Fix for overlayed include files on Windows and a test case 2013-11-10 14:37:32 +04:00
optimizer_unfixed_bugs Fix for MDEV-533: Confusing error code when doing auto-increment insert for out-of-range values 2012-09-18 15:14:19 +03:00
oqgraph 1. support for testing statically built oqgraph 2012-03-30 22:15:44 +02:00
parts Merge MDEV-6067 from 5.3 to 5.5. 2014-04-11 10:46:11 +02:00
percona MDEV-7692 MariaDB - mysql-test - SUITE:percona - percona.innodb_sys_index 'xtradb' fails - @@version_comment 2015-03-12 18:53:31 +02:00
perfschema Fix test failure in perfschema.myisam_file_io when perfschema is not compiled into the server. 2014-10-20 09:36:41 +02:00
perfschema_stress mysql-5.5.37 selective merge 2014-03-27 22:26:58 +01:00
plugins MDEV-7596 audit plugin - record full query / document line length / make buffer configurable. 2015-03-31 13:10:43 +05:00
rpl MDEV-7126 replication slave - deadlock in terminate_slave_thread with stop slave and show variables of replication filters and show global status 2015-04-26 22:05:33 +02:00
sphinx fix SphinxSE to not leave Sphinx_error status variable uninitialized 2014-02-14 15:16:23 +01:00
storage_engine Sporadic failure in storage_engine/trx.xa_recovery test 2014-11-17 20:10:57 +04:00
stress
sys_vars MDEV-7410 Temporary table name conflict between sessions 2015-01-10 14:07:46 +01:00
unit
vcol MDEV-7113 difference between check_vcol_func_processor and check_partition_func_processor 2014-11-18 15:42:40 +01:00