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

Assertion `state() == s_aborting || state() == s_must_replay' failed in int wsrep::transaction::after_rollback()

    XMLWordPrintable

Details

    Description

      INSTALL PLUGIN ARCHIVE SONAME 'ha_archive.so';
      CREATE TABLE t (a CHAR(1)) ENGINE=ARCHIVE;
      INSERT INTO t VALUES ('A');
      UNINSTALL SONAME 'ha_archive';
      ALTER TABLE t CHANGE COLUMN a a CHAR(2);
      INSERT INTO t (a) VALUES ('AB');
      

      Leads to:

      10.4.28 e9dc39572f2416a01d9908da98b904748d235298 (Debug)

      mysqld: /test/10.4_dbg/wsrep-lib/src/transaction.cpp:746: int wsrep::transaction::after_rollback(): Assertion `state() == s_aborting || state() == s_must_replay' failed.
      

      10.4.28 e9dc39572f2416a01d9908da98b904748d235298 (Debug)

      Core was generated by `/test/GAL_MD081122-mariadb-10.4.28-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 0x14cddc25c700 (LWP 2814573))]
      (gdb) bt
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      #1  0x000055807d673b07 in my_write_core (sig=sig@entry=6) at /test/10.4_dbg/mysys/stacktrace.c:386
      #2  0x000055807ce87ee8 in handle_fatal_signal (sig=6) at /test/10.4_dbg/sql/signal_handler.cc:366
      #3  <signal handler called>
      #4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #5  0x000014cddfdbc859 in __GI_abort () at abort.c:79
      #6  0x000014cddfdbc729 in __assert_fail_base (fmt=0x14cddff52588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55807dd126c0 "state() == s_aborting || state() == s_must_replay", file=0x55807dd11dd8 "/test/10.4_dbg/wsrep-lib/src/transaction.cpp", line=746, function=<optimized out>) at assert.c:92
      #7  0x000014cddfdcdfd6 in __GI___assert_fail (assertion=assertion@entry=0x55807dd126c0 "state() == s_aborting || state() == s_must_replay", file=file@entry=0x55807dd11dd8 "/test/10.4_dbg/wsrep-lib/src/transaction.cpp", line=line@entry=746, function=function@entry=0x55807dd12690 "int wsrep::transaction::after_rollback()") at assert.c:101
      #8  0x000055807d7b8a62 in wsrep::transaction::after_rollback (this=this@entry=0x14cd5c006e08) at /test/10.4_dbg/wsrep-lib/src/transaction.cpp:785
      #9  0x000055807ce8a993 in wsrep::client_state::after_rollback (this=0x14cd5c006da0) at /test/10.4_dbg/wsrep-lib/include/wsrep/client_state.hpp:537
      #10 wsrep_after_rollback (all=false, thd=0x14cd5c000d28) at /test/10.4_dbg/sql/wsrep_trans_observer.h:387
      #11 ha_checktype (thd=thd@entry=0x14cd5c000d28, hton=<optimized out>, no_substitute=no_substitute@entry=false) at /test/10.4_dbg/sql/handler.cc:303
      #12 0x000055807cd0b107 in ha_checktype (no_substitute=false, type=DB_TYPE_ARCHIVE_DB, thd=0x14cd5c000d28) at /test/10.4_dbg/sql/handler.h:4899
      #13 TABLE_SHARE::init_from_binary_frm_image (this=this@entry=0x14cd5c04a570, thd=thd@entry=0x14cd5c000d28, write=write@entry=false, frm_image=frm_image@entry=0x14cd5c047158 "\376\001\n\020\022", frm_length=frm_length@entry=431) at /test/10.4_dbg/sql/table.cc:1714
      #14 0x000055807cd0ee71 in open_table_def (thd=thd@entry=0x14cd5c000d28, share=share@entry=0x14cd5c04a570, flags=flags@entry=11) at /test/10.4_dbg/sql/table.cc:697
      #15 0x000055807cde9d9e in tdc_acquire_share (thd=thd@entry=0x14cd5c000d28, tl=tl@entry=0x14cd5c012580, flags=flags@entry=3, out_table=out_table@entry=0x14cddc258f80) at /test/10.4_dbg/sql/table_cache.cc:837
      #16 0x000055807cb9e1fa in open_table (thd=thd@entry=0x14cd5c000d28, table_list=table_list@entry=0x14cd5c012580, ot_ctx=ot_ctx@entry=0x14cddc2595e0) at /test/10.4_dbg/sql/sql_base.cc:1965
      #17 0x000055807cba217a in open_and_process_table (ot_ctx=0x14cddc2595e0, has_prelocking_list=false, prelocking_strategy=0x14cddc259780, flags=0, counter=0x14cddc25967c, tables=0x14cd5c012580, thd=0x14cd5c000d28) at /test/10.4_dbg/sql/sql_base.cc:3909
      #18 open_tables (thd=thd@entry=0x14cd5c000d28, options=@0x14cd5c005fd8: {m_options = DDL_options_st::OPT_NONE}, start=start@entry=0x14cddc259668, counter=counter@entry=0x14cddc25967c, flags=flags@entry=0, prelocking_strategy=prelocking_strategy@entry=0x14cddc259780) at /test/10.4_dbg/sql/sql_base.cc:4390
      #19 0x000055807cba34b7 in open_and_lock_tables (thd=thd@entry=0x14cd5c000d28, options=<optimized out>, tables=<optimized out>, tables@entry=0x14cd5c012580, derived=derived@entry=true, flags=flags@entry=0, prelocking_strategy=prelocking_strategy@entry=0x14cddc259780) at /test/10.4_dbg/sql/sql_base.cc:5337
      #20 0x000055807cbda1ff in open_and_lock_tables (flags=0, derived=true, tables=0x14cd5c012580, thd=0x14cd5c000d28) at /test/10.4_dbg/sql/sql_base.h:503
      #21 mysql_insert (thd=thd@entry=0x14cd5c000d28, table_list=0x14cd5c012580, fields=@0x14cd5c0059d0: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x14cd5c012d90, last = 0x14cd5c012d90, elements = 1}, <No data fields>}, values_list=@0x14cd5c005a18: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x14cd5c0132e8, last = 0x14cd5c0132e8, elements = 1}, <No data fields>}, update_fields=@0x14cd5c005a00: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x55807e071910 <end_of_list>, last = 0x14cd5c005a00, elements = 0}, <No data fields>}, update_values=@0x14cd5c0059e8: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x55807e071910 <end_of_list>, last = 0x14cd5c0059e8, elements = 0}, <No data fields>}, duplic=DUP_ERROR, ignore=false) at /test/10.4_dbg/sql/sql_insert.cc:764
      #22 0x000055807cc1288e in mysql_execute_command (thd=thd@entry=0x14cd5c000d28) at /test/10.4_dbg/sql/sql_parse.cc:4599
      #23 0x000055807cc19d40 in mysql_parse (thd=thd@entry=0x14cd5c000d28, rawbuf=rawbuf@entry=0x14cd5c0124a0 "INSERT INTO t (a) VALUES ('AB')", length=length@entry=31, parser_state=parser_state@entry=0x14cddc25b3b0, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.4_dbg/sql/sql_parse.cc:7982
      #24 0x000055807cc1ab79 in wsrep_mysql_parse (thd=thd@entry=0x14cd5c000d28, rawbuf=0x14cd5c0124a0 "INSERT INTO t (a) VALUES ('AB')", length=31, parser_state=parser_state@entry=0x14cddc25b3b0, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.4_dbg/sql/sql_parse.cc:7784
      #25 0x000055807cc1c756 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14cd5c000d28, packet=packet@entry=0x14cd5c01a679 "INSERT INTO t (a) VALUES ('AB')", packet_length=packet_length@entry=31, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.4_dbg/sql/sql_class.h:1208
      #26 0x000055807cc1ef4e in do_command (thd=0x14cd5c000d28) at /test/10.4_dbg/sql/sql_parse.cc:1378
      #27 0x000055807cd3b00a in do_handle_one_connection (connect=<optimized out>) at /test/10.4_dbg/sql/sql_connect.cc:1420
      #28 0x000055807cd3b0c6 in handle_one_connection (arg=<optimized out>) at /test/10.4_dbg/sql/sql_connect.cc:1324
      #29 0x000014cde02cd609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #30 0x000014cddfeb9133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Bug confirmed present in:
      MariaDB: 10.4.28 (dbg), 10.5.19 (dbg), 10.6.10-6 (dbg), 10.6.12 (dbg), 10.7.8 (dbg), 10.8.7 (dbg), 10.9.5 (dbg), 10.10.3 (dbg), 10.11.1 (dbg)

      Bug (or feature/syntax) confirmed not present in:
      MariaDB: 10.3.38 (dbg), 10.3.38 (opt), 10.4.28 (opt), 10.5.19 (opt), 10.6.12 (opt), 10.7.8 (opt), 10.8.7 (opt), 10.9.5 (opt), 10.10.3 (opt), 10.11.1 (opt)

      Attachments

        Activity

          People

            sysprg Julius Goryavsky
            ramesh Ramesh Sivaraman
            Votes:
            0 Vote for this issue
            Watchers:
            4 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.