Browse Source

MDEV-21483 : Galera MTR tests failed: galera.MW-328A galera.MW-328B

Enable tests with additional galera output to find out actual
reason for test failures.
pull/1554/head
Jan Lindström 6 years ago
parent
commit
fde94b4cd6
  1. 2
      mysql-test/suite/galera/disabled.def
  2. 25
      mysql-test/suite/galera/r/MW-328C.result
  3. 4
      mysql-test/suite/galera/t/MW-328A.cnf
  4. 4
      mysql-test/suite/galera/t/MW-328B.cnf
  5. 7
      mysql-test/suite/galera/t/MW-328C.cnf
  6. 35
      mysql-test/suite/galera/t/MW-328C.test
  7. 7
      mysql-test/suite/galera/t/MW-328D.cnf
  8. 7
      mysql-test/suite/galera/t/MW-328E.cnf

2
mysql-test/suite/galera/disabled.def

@ -15,8 +15,6 @@ GCF-939 : MDEV-21520 galera.GCF-939
MDEV-16509 : MDEV-21523 galera.MDEV-16509
MDEV-20225 : MDEV-20886 galera.MDEV-20225
MW-286 : MDEV-18464 Killing thread can cause mutex deadlock if done concurrently with Galera/replication victim kill
MW-328A : MDEV-21483 galera.MW-328A galera.MW-328B
MW-328B : MDEV-21483 galera.MW-328A galera.MW-328B
MW-329 : MDEV-19962 Galera test failure on MW-329
galera.galera_defaults : MDEV-21494 Galera test sporadic failure on galera.galera_defaults
galera_as_slave_replication_bundle : MDEV-15785 OPTION_GTID_BEGIN is set in Gtid_log_event::do_apply_event()

25
mysql-test/suite/galera/r/MW-328C.result

@ -0,0 +1,25 @@
connection node_2;
connection node_1;
CREATE TABLE t1 (f1 INTEGER AUTO_INCREMENT PRIMARY KEY, f2 CHAR(20) DEFAULT 'abc') ENGINE=InnoDB;
INSERT INTO t1 (f1) VALUES (1);
CREATE TABLE t2 (f1 CHAR(20)) ENGINE=InnoDB;
CREATE PROCEDURE proc_update ()
BEGIN
DECLARE CONTINUE HANDLER FOR SQLEXCEPTION BEGIN END;
SET SESSION wsrep_sync_wait = 0;
WHILE 1 DO
UPDATE t1 SET f2 = LEFT(MD5(RAND()), 4);
END WHILE;
END|
connect node_1X, 127.0.0.1, root, , test, $NODE_MYPORT_1;
connection node_1X;
CALL proc_update();;
connection node_2;
SET SESSION wsrep_retry_autocommit = 10000;
connection node_1;
connection node_1X;
Got one of the listed errors
connection node_1;
DROP PROCEDURE proc_update;
DROP TABLE t1, t2;
CALL mtr.add_suppression("conflict state ABORTED after post commit");

4
mysql-test/suite/galera/t/MW-328A.cnf

@ -1,7 +1,7 @@
!include ../galera_2nodes.cnf
[mysqld.1]
wsrep-debug=ON
wsrep-debug=SERVER
[mysqld.2]
wsrep-debug=ON
wsrep-debug=SERVER

4
mysql-test/suite/galera/t/MW-328B.cnf

@ -1,7 +1,7 @@
!include ../galera_2nodes.cnf
[mysqld.1]
wsrep-debug=ON
wsrep-debug=SERVER
[mysqld.2]
wsrep-debug=ON
wsrep-debug=SERVER

7
mysql-test/suite/galera/t/MW-328C.cnf

@ -0,0 +1,7 @@
!include ../galera_2nodes.cnf
[mysqld.1]
wsrep-debug=SERVER
[mysqld.2]
wsrep-debug=SERVER

35
mysql-test/suite/galera/t/MW-328C.test

@ -0,0 +1,35 @@
#
# MW-328 Fix unnecessary/silent BF aborts
#
#
# Make sure that a high value of wsrep_retry_autocommit
# masks all deadlock errors
#
--source include/galera_cluster.inc
--source suite/galera/t/MW-328-header.inc
--connection node_2
--let $count = 100
SET SESSION wsrep_retry_autocommit = 10000;
--disable_query_log
while ($count)
{
--error 0
INSERT IGNORE INTO t2 SELECT f2 FROM t1;
--disable_result_log
--error 0
SELECT 1 FROM DUAL;
--enable_result_log
--dec $count
}
--enable_query_log
--source suite/galera/t/MW-328-footer.inc

7
mysql-test/suite/galera/t/MW-328D.cnf

@ -0,0 +1,7 @@
!include ../galera_2nodes.cnf
[mysqld.1]
wsrep-debug=SERVER
[mysqld.2]
wsrep-debug=SERVER

7
mysql-test/suite/galera/t/MW-328E.cnf

@ -0,0 +1,7 @@
!include ../galera_2nodes.cnf
[mysqld.1]
wsrep-debug=SERVER
[mysqld.2]
wsrep-debug=SERVER
Loading…
Cancel
Save