1# 2# MDEV-27553 Assertion `inited==INDEX' failed: int handler::ha_index_end() 3# 4 5--source include/galera_cluster.inc 6--source include/have_debug.inc 7 8CREATE TABLE t1 (f1 INTEGER PRIMARY KEY); 9 10--connection node_1 11--let $wsrep_cluster_address_orig = `SELECT @@wsrep_cluster_address` 12SET SESSION wsrep_trx_fragment_size=1; 13START TRANSACTION; 14INSERT INTO t1 VALUES (1); 15# This will result in failure to remove fragments 16# from streaming log, in the following ROLLBACK. 17SET @@global.debug_dbug="+d,ha_index_init_fail"; 18ROLLBACK; 19 20--connection node_2 21SELECT COUNT(*) `Expect 0` FROM mysql.wsrep_streaming_log; 22 23 24--connection node_1 25SET @@global.debug_dbug=""; 26SELECT COUNT(*) `Expect 1` FROM mysql.wsrep_streaming_log; 27 28SET SESSION wsrep_on=OFF; 29DELETE FROM mysql.wsrep_streaming_log; 30SET SESSION wsrep_on=ON; 31DROP TABLE t1; 32 33CALL mtr.add_suppression("WSREP: Failed to init table for index scan"); 34