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

Assertion failure in translog_write_record upon CREATE OR REPLACE

    XMLWordPrintable

Details

    Description

      CREATE TABLE t1 (id INT, f INT, KEY(f), PRIMARY KEY (id)) ENGINE=Aria;
      INSERT INTO t1 VALUES (1,1),(2,7),(3,9);
      CREATE TABLE t2 (a INT) ENGINE=Aria;
      INSERT INTO t2 VALUES (2),(1);
      CREATE OR REPLACE TABLE t3 AS SELECT t2.* FROM t2, t1 WHERE t2.a = t1.f OR t2.a = t1.id;
       
      # Cleanup
      DROP TABLE t1, t2, t3;
      

      bb-10.11-midenok e386ed3da

      mariadbd: /data/src/bb-10.11-midenok-asan/storage/maria/ma_loghandler.c:6408: translog_write_record: Assertion `share->now_transactional' failed.
      221014 14:22:16 [ERROR] mysqld got signal 6 ;
       
      #7  0x00007f796ea06662 in __GI___assert_fail (assertion=0x559f6b3ff1e0 "share->now_transactional", file=0x559f6b3f4580 "/data/src/bb-10.11-midenok-asan/storage/maria/ma_loghandler.c", line=6408, function=0x559f6b405100 <__PRETTY_FUNCTION__.29> "translog_write_record") at assert.c:101
      #8  0x0000559f69b55d18 in translog_write_record (lsn=0x7f79656fe3a0, type=LOGREC_INCOMPLETE_LOG, trn=0x559f6d187160 <dummy_transaction_object>, tbl_info=0x629000294218, rec_len=2, part_no=3, parts_data=0x7f79656fe400, store_share_id=0x7f79656fe390 "\260\343oey\177", hook_arg=0x0) at /data/src/bb-10.11-midenok-asan/storage/maria/ma_loghandler.c:6408
      #9  0x0000559f69bab573 in _ma_tmp_disable_logging_for_table (info=0x629000294218, log_incomplete=1 '\001') at /data/src/bb-10.11-midenok-asan/storage/maria/ma_recovery.c:3617
      #10 0x0000559f69b16172 in ha_maria::external_lock (this=0x621000114538, thd=0x62c0000b0218, lock_type=0) at /data/src/bb-10.11-midenok-asan/storage/maria/ha_maria.cc:2864
      #11 0x0000559f6961db0f in handler::ha_external_lock (this=0x621000114538, thd=0x62c0000b0218, lock_type=0) at /data/src/bb-10.11-midenok-asan/sql/handler.cc:7095
      #12 0x0000559f689b329b in QUICK_RANGE_SELECT::init_ror_merged_scan (this=0x613000050bc0, reuse_handler=false, local_alloc=0x611000010ec8) at /data/src/bb-10.11-midenok-asan/sql/opt_range.cc:1546
      #13 0x0000559f689b5a3a in QUICK_ROR_UNION_SELECT::reset (this=0x611000010e40) at /data/src/bb-10.11-midenok-asan/sql/opt_range.cc:1811
      #14 0x0000559f68ec1d0b in join_init_read_record (tab=0x6290002855f0) at /data/src/bb-10.11-midenok-asan/sql/sql_select.cc:22724
      #15 0x0000559f68ec1291 in join_init_quick_read_record (tab=0x6290002855f0) at /data/src/bb-10.11-midenok-asan/sql/sql_select.cc:22650
      #16 0x0000559f68ebb097 in sub_select (join=0x6290000e9648, join_tab=0x6290002855f0, end_of_records=false) at /data/src/bb-10.11-midenok-asan/sql/sql_select.cc:21761
      #17 0x0000559f68ebc95e in evaluate_join_record (join=0x6290000e9648, join_tab=0x629000285238, error=0) at /data/src/bb-10.11-midenok-asan/sql/sql_select.cc:21994
      #18 0x0000559f68ebb253 in sub_select (join=0x6290000e9648, join_tab=0x629000285238, end_of_records=false) at /data/src/bb-10.11-midenok-asan/sql/sql_select.cc:21764
      #19 0x0000559f68eb92f0 in do_select (join=0x6290000e9648, procedure=0x0) at /data/src/bb-10.11-midenok-asan/sql/sql_select.cc:21309
      #20 0x0000559f68e4324b in JOIN::exec_inner (this=0x6290000e9648) at /data/src/bb-10.11-midenok-asan/sql/sql_select.cc:4813
      #21 0x0000559f68e4075f in JOIN::exec (this=0x6290000e9648) at /data/src/bb-10.11-midenok-asan/sql/sql_select.cc:4591
      #22 0x0000559f68e44b80 in mysql_select (thd=0x62c0000b0218, tables=0x6290000e7120, fields=..., conds=0x6290000e8950, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2201187781376, result=0x6290000e94f8, unit=0x62c0000b4658, select_lex=0x6290000e6b00) at /data/src/bb-10.11-midenok-asan/sql/sql_select.cc:5071
      #23 0x0000559f68e1515f in handle_select (thd=0x62c0000b0218, lex=0x62c0000b4580, result=0x6290000e94f8, setup_tables_done_option=0) at /data/src/bb-10.11-midenok-asan/sql/sql_select.cc:582
      #24 0x0000559f69030922 in Sql_cmd_create_table_like::execute (this=0x6290000e6350, thd=0x62c0000b0218) at /data/src/bb-10.11-midenok-asan/sql/sql_table.cc:12813
      #25 0x0000559f68d3c3e0 in mysql_execute_command (thd=0x62c0000b0218, is_called_from_prepared_stmt=false) at /data/src/bb-10.11-midenok-asan/sql/sql_parse.cc:5997
      #26 0x0000559f68d496e0 in mysql_parse (thd=0x62c0000b0218, rawbuf=0x6290000e6238 "CREATE OR REPLACE TABLE t3 AS SELECT t2.* FROM t2, t1 WHERE t2.a = t1.f OR t2.a = t1.id", length=87, parser_state=0x7f7965700a90) at /data/src/bb-10.11-midenok-asan/sql/sql_parse.cc:8023
      #27 0x0000559f68d1fe32 in dispatch_command (command=COM_QUERY, thd=0x62c0000b0218, packet=0x629000253219 "CREATE OR REPLACE TABLE t3 AS SELECT t2.* FROM t2, t1 WHERE t2.a = t1.f OR t2.a = t1.id", packet_length=87, blocking=true) at /data/src/bb-10.11-midenok-asan/sql/sql_parse.cc:1894
      #28 0x0000559f68d1cc16 in do_command (thd=0x62c0000b0218, blocking=true) at /data/src/bb-10.11-midenok-asan/sql/sql_parse.cc:1407
      #29 0x0000559f691c56c4 in do_handle_one_connection (connect=0x608000002438, put_in_cache=true) at /data/src/bb-10.11-midenok-asan/sql/sql_connect.cc:1416
      #30 0x0000559f691c505a in handle_one_connection (arg=0x6080000023b8) at /data/src/bb-10.11-midenok-asan/sql/sql_connect.cc:1318
      #31 0x0000559f69d9f9c4 in pfs_spawn_thread (arg=0x617000004d98) at /data/src/bb-10.11-midenok-asan/storage/perfschema/pfs.cc:2201
      #32 0x00007f796eee2ea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #33 0x00007f796ead1aef in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Before MDEV-25292 it passes.

      Attachments

        Issue Links

          Activity

            People

              midenok Aleksey Midenkov
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

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