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

Assertion `active() == false' failed in wsrep::transaction::start_transaction upon ROLLBACK AND CHAIN

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 10.4(EOL), 10.5
    • 10.4.16, 10.5.7
    • Galera, wsrep
    • None

    Description

      --source include/galera_cluster.inc
       
      ROLLBACK AND CHAIN;
      

      10.4 debug 1c8de231

      mysqld: /data/src/10.4/wsrep-lib/src/transaction.cpp:123: int wsrep::transaction::start_transaction(const wsrep::transaction_id&): Assertion `active() == false' failed.
       
      b0 "/data/src/10.4/wsrep-lib/src/transaction.cpp", line=123, function=0x55e41699e840 <wsrep::transaction::start_transaction(wsrep::transaction_id const&)::__PRETTY_FUNCTION__> "int wsrep::transaction::start_transaction(const wsrep::transaction_id&)") at assert.c:101
      #8  0x000055e416429261 in wsrep::transaction::start_transaction (this=0x7fe1f8006cf0, id=...) at /data/src/10.4/wsrep-lib/src/transaction.cpp:123
      #9  0x000055e41573bd6e in wsrep::client_state::start_transaction (this=0x7fe1f8006c88, id=...) at /data/src/10.4/wsrep-lib/include/wsrep/client_state.hpp:290
      #10 0x000055e4159149d5 in wsrep_start_transaction (thd=0x7fe1f8000af0, trx_id=40) at /data/src/10.4/sql/wsrep_trans_observer.h:136
      #11 0x000055e4159150fa in trans_begin (thd=0x7fe1f8000af0, flags=0) at /data/src/10.4/sql/transaction.cc:186
      #12 0x000055e41578289c in mysql_execute_command (thd=0x7fe1f8000af0) at /data/src/10.4/sql/sql_parse.cc:5670
      #13 0x000055e415789bf1 in mysql_parse (thd=0x7fe1f8000af0, rawbuf=0x7fe1f8011e68 "ROLLBACK AND CHAIN", length=18, parser_state=0x7fe26c0dc160, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:7900
      #14 0x000055e4157891ed in wsrep_mysql_parse (thd=0x7fe1f8000af0, rawbuf=0x7fe1f8011e68 "ROLLBACK AND CHAIN", length=18, parser_state=0x7fe26c0dc160, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:7704
      #15 0x000055e415774c80 in dispatch_command (command=COM_QUERY, thd=0x7fe1f8000af0, packet=0x7fe1f80083a1 "ROLLBACK AND CHAIN", packet_length=18, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:1827
      #16 0x000055e41577344d in do_command (thd=0x7fe1f8000af0) at /data/src/10.4/sql/sql_parse.cc:1360
      #17 0x000055e4158fc9db in do_handle_one_connection (connect=0x55e41826efe0) at /data/src/10.4/sql/sql_connect.cc:1412
      #18 0x000055e4158fc72a in handle_one_connection (arg=0x55e41826efe0) at /data/src/10.4/sql/sql_connect.cc:1316
      #19 0x000055e4163050c9 in pfs_spawn_thread (arg=0x55e417ce0840) at /data/src/10.4/storage/perfschema/pfs.cc:1869
      #20 0x00007fe2771b94a4 in start_thread (arg=0x7fe26c0dd700) at pthread_create.c:456
      #21 0x00007fe2752edd0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
      

      Reproducible on 10.4, 10.5 with wsrep enabled.
      Not reproducible on 10.3.
      Not reproducible with wsrep disabled.
      No obvious immedate effect on a non-debug build.

      Attachments

        Activity

          People

            jplindst Jan Lindström (Inactive)
            elenst Elena Stepanova
            Votes:
            1 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.