[MDEV-26005] Temp table on Aria crashes slave in parallel replication with assert failure Created: 2021-06-23  Updated: 2021-06-23

Status: Open
Project: MariaDB Server
Component/s: Storage Engine - Aria
Affects Version/s: 10.4, 10.5, 10.6
Fix Version/s: 10.4, 10.5, 10.6

Type: Bug Priority: Major
Reporter: Sachin Setiya (Inactive) Assignee: Andrei Elkin
Resolution: Unresolved Votes: 1
Labels: None


 Description   

Test Case

--source include/have_innodb.inc
--source include/master-slave.inc
--connection master
--connection slave
--let $slave_parallel_threads= `select @@slave_parallel_threads`
--source include/stop_slave.inc
SET GLOBAL slave_parallel_threads=3;
change master to master_use_gtid=slave_pos;
--source include/start_slave.inc
 
--connection master
create temporary table tmp_tbl(a int, b int) engine=aria;
insert into tmp_tbl values(1,1);
insert into tmp_tbl values(2,2);
 
--sync_slave_with_master
--connection master
drop table tmp_tbl;
--sync_slave_with_master
 
--echo # cleanup
stop slave;
--eval set global slave_parallel_threads = $slave_parallel_threads;
--source include/start_slave.inc
--connection master
--source include/rpl_end.inc

If I decrease the number of threads or number of inserts it does not fail.

Thread pointer: 0x7f3df4000ff8
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0x7f3e3cd5dc78 thread_stack 0x49000
mariadbd: sql/sql_class.cc:1760: virtual THD::~THD(): Assertion `status_var.local_memory_used == 0 || !debug_assert_on_not_freed_memory' failed.
----------SERVER LOG END-------------
 


Generated at Thu Feb 08 09:42:02 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.