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

Assertion `thd->ha_data[wsrep_hton->slot].ha_info[all].is_trx_read_write()' failed in int wsrep_prepare(handlerton*, THD*, bool)

    XMLWordPrintable

Details

    Description

      CREATE TABLE t1 ( col_int_key INT, col_varchar_key VARCHAR(1)) ENGINE=INNODB;
      XA START 'a';
      INSERT INTO t1 VALUES(0xAAA6);
      SAVEPOINT s1;
      XA END 'a';
      XA PREPARE 'a';
      

      Leads to

      10.3.37 4fec99a2ba6034592d273d918402540d3d4fe772 (Debug)

      mysqld: /test/10.3_dbg/sql/wsrep_hton.cc:214: int wsrep_prepare(handlerton*, THD*, bool): Assertion `thd->ha_data[wsrep_hton->slot].ha_info[all].is_trx_read_write()' failed.
      

      10.3.37 4fec99a2ba6034592d273d918402540d3d4fe772 (Debug)

      Core was generated by `/test/GAL_MD121022-mariadb-10.3.37-linux-x86_64-dbg/bin/mysqld --defaults-file='.
      Program terminated with signal SIGABRT, Aborted.
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=6)
          at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      [Current thread is 1 (Thread 0x154aa00ad700 (LWP 3456565))]
      (gdb) bt
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      #1  0x0000556d67725e68 in my_write_core (sig=sig@entry=6) at /test/10.3_dbg/mysys/stacktrace.c:386
      #2  0x0000556d66f7a2c6 in handle_fatal_signal (sig=6) at /test/10.3_dbg/sql/signal_handler.cc:365
      #3  <signal handler called>
      #4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #5  0x0000154ab2aed859 in __GI_abort () at abort.c:79
      #6  0x0000154ab2aed729 in __assert_fail_base (fmt=0x154ab2c83588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x556d67809448 "thd->ha_data[wsrep_hton->slot].ha_info[all].is_trx_read_write()", file=0x556d678093f8 "/test/10.3_dbg/sql/wsrep_hton.cc", line=214, function=<optimized out>) at assert.c:92
      #7  0x0000154ab2afefd6 in __GI___assert_fail (assertion=assertion@entry=0x556d67809448 "thd->ha_data[wsrep_hton->slot].ha_info[all].is_trx_read_write()", file=file@entry=0x556d678093f8 "/test/10.3_dbg/sql/wsrep_hton.cc", line=line@entry=214, function=function@entry=0x556d67809a60 "int wsrep_prepare(handlerton*, THD*, bool)") at assert.c:101
      #8  0x0000556d66ec91ae in wsrep_prepare (hton=<optimized out>, thd=0x154a24000d28, all=true) at /test/10.3_dbg/sql/wsrep_hton.cc:214
      #9  0x0000556d66f7a9ec in prepare_or_error (ht=0x556d6a4f71d8, thd=thd@entry=0x154a24000d28, all=all@entry=true) at /test/10.3_dbg/sql/handler.cc:1208
      #10 0x0000556d66f7d7e9 in ha_prepare (thd=thd@entry=0x154a24000d28) at /test/10.3_dbg/sql/handler.cc:1243
      #11 0x0000556d66e4b527 in trans_xa_prepare (thd=thd@entry=0x154a24000d28) at /test/10.3_dbg/sql/transaction.cc:863
      #12 0x0000556d66d29813 in mysql_execute_command (thd=thd@entry=0x154a24000d28) at /test/10.3_dbg/sql/sql_parse.cc:5935
      #13 0x0000556d66d2b72d in mysql_parse (thd=thd@entry=0x154a24000d28, rawbuf=rawbuf@entry=0x154a24010990 "XA PREPARE 'a'", length=length@entry=14, parser_state=parser_state@entry=0x154aa00ac5b0, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.3_dbg/sql/sql_parse.cc:7855
      #14 0x0000556d66d2c81a in wsrep_mysql_parse (thd=thd@entry=0x154a24000d28, rawbuf=0x154a24010990 "XA PREPARE 'a'", length=14, parser_state=parser_state@entry=0x154aa00ac5b0, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.3_dbg/sql/sql_parse.cc:7647
      #15 0x0000556d66d2d81c in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x154a24000d28, packet=packet@entry=0x154a24018ad9 "XA PREPARE 'a'", packet_length=packet_length@entry=14, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.3_dbg/sql/sql_class.h:1153
      #16 0x0000556d66d2fc7f in do_command (thd=0x154a24000d28) at /test/10.3_dbg/sql/sql_parse.cc:1398
      #17 0x0000556d66e3b99b in do_handle_one_connection (connect=<optimized out>) at /test/10.3_dbg/sql/sql_connect.cc:1403
      #18 0x0000556d66e3bacb in handle_one_connection (arg=<optimized out>) at /test/10.3_dbg/sql/sql_connect.cc:1308
      #19 0x0000154ab2cc5609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #20 0x0000154ab2bea133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Attachments

        Activity

          People

            sciascid Daniele Sciascia
            ramesh Ramesh Sivaraman
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.