Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-26005

Temp table on Aria crashes slave in parallel replication with assert failure

    XMLWordPrintable

    Details

      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-------------
       
      
      

        Attachments

          Activity

            People

            Assignee:
            Elkin Andrei Elkin
            Reporter:
            sachin.setiya.007 Sachin Setiya (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.