mirror of
https://github.com/MariaDB/server.git
synced 2025-08-15 22:37:22 +00:00

In wsrep_schema code, call ha_index_end() only if the corresponding ha_index_init() call succeeded. Reviewed-by: Jan Lindström <jan.lindstrom@mariadb.com>
33 lines
860 B
Plaintext
33 lines
860 B
Plaintext
#
|
|
# MDEV-27553 Assertion `inited==INDEX' failed: int handler::ha_index_end()
|
|
#
|
|
|
|
--source include/galera_cluster.inc
|
|
|
|
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY);
|
|
|
|
--connection node_1
|
|
--let $wsrep_cluster_address_orig = `SELECT @@wsrep_cluster_address`
|
|
SET SESSION wsrep_trx_fragment_size=1;
|
|
START TRANSACTION;
|
|
INSERT INTO t1 VALUES (1);
|
|
# This will result in failure to remove fragments
|
|
# from streaming log, in the following ROLLBACK.
|
|
SET @@global.debug_dbug="+d,ha_index_init_fail";
|
|
ROLLBACK;
|
|
|
|
--connection node_2
|
|
SELECT COUNT(*) `Expect 0` FROM mysql.wsrep_streaming_log;
|
|
|
|
|
|
--connection node_1
|
|
SET @@global.debug_dbug="";
|
|
SELECT COUNT(*) `Expect 1` FROM mysql.wsrep_streaming_log;
|
|
|
|
SET SESSION wsrep_on=OFF;
|
|
DELETE FROM mysql.wsrep_streaming_log;
|
|
SET SESSION wsrep_on=ON;
|
|
DROP TABLE t1;
|
|
|
|
CALL mtr.add_suppression("WSREP: Failed to init table for index scan");
|