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

Assertion `s.ok()' failed in virtual void myrocks::Rdb_transaction_impl::set_name()

    XMLWordPrintable

Details

    Description

      INSTALL SONAME 'ha_rocksdb';
      CHANGE MASTER 'm1' TO master_host='127.0.0.1',master_PORT=3307,master_user='';
      ALTER TABLE mysql.gtid_slave_pos ENGINE=RocksDB;
      CHANGE MASTER TO master_host='127.0.0.1',master_user='';
      START ALL SLAVES;
      

      Leads to

      11.3.0 8951f7d940166063db3fe64c35c40a5e5fabcf7d (Optimized)

      Core was generated by `/test/MD240823-mariadb-11.3.0-linux-x86_64-opt/bin/mariadbd --no-defaults --cor'.
      Program terminated with signal SIGABRT, Aborted.
      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      [Current thread is 1 (Thread 0x14ab78142700 (LWP 1427588))]
      (gdb) bt
      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #1  0x000014ab92039859 in __GI_abort () at abort.c:79
      #2  0x000014ab238593dd in myrocks::rdb_handle_io_error (status={code_ = rocksdb::Status::kInvalidArgument, subcode_ = rocksdb::Status::kNone, sev_ = rocksdb::Status::kNoError, retryable_ = false, data_loss_ = false, scope_ = 0 '\000', state_ = std::unique_ptr<const char []> = {
              get() = 0x14ab0400c3c0 "Transaction name must be unique."
            }}, err_type=err_type@entry=myrocks::RDB_IO_ERROR_TX_COMMIT) at /test/11.3_opt/storage/rocksdb/ha_rocksdb.cc:15010
      #3  0x000014ab238817cc in myrocks::Rdb_transaction_impl::set_name (this=<optimized out>) at /test/11.3_opt/storage/rocksdb/ha_rocksdb.cc:3810
      #4  0x000014ab2386466e in myrocks::rocksdb_register_tx (hton=<optimized out>, tx=0x14ab0400b960, thd=0x14ab04001228) at /test/11.3_opt/storage/rocksdb/ha_rocksdb.cc:5168
      #5  myrocks::ha_rocksdb::external_lock (lock_type=<optimized out>, thd=0x14ab04001228, this=0x14ab10016120) at /test/11.3_opt/storage/rocksdb/ha_rocksdb.cc:12212
      #6  myrocks::ha_rocksdb::external_lock (this=0x14ab10016120, thd=0x14ab04001228, lock_type=<optimized out>) at /test/11.3_opt/storage/rocksdb/ha_rocksdb.cc:12094
      #7  0x0000558159b6c088 in handler::ha_external_lock (this=0x14ab10016120, thd=thd@entry=0x14ab04001228, lock_type=lock_type@entry=0) at /test/11.3_opt/sql/handler.cc:7346
      #8  0x0000558159c89a81 in lock_external (count=<optimized out>, tables=0x14ab04010c28, thd=0x14ab04001228) at /test/11.3_opt/sql/lock.cc:396
      #9  mysql_lock_tables (thd=thd@entry=0x14ab04001228, sql_lock=sql_lock@entry=0x14ab04010bf8, flags=flags@entry=0) at /test/11.3_opt/sql/lock.cc:341
      #10 0x0000558159c8a557 in mysql_lock_tables (thd=thd@entry=0x14ab04001228, tables=0x14ab04010bf0, count=count@entry=1, flags=flags@entry=0) at /test/11.3_opt/sql/lock.cc:304
      #11 0x0000558159886112 in lock_tables (thd=thd@entry=0x14ab04001228, tables=0x14ab78140c00, count=<optimized out>, flags=flags@entry=0) at /test/11.3_opt/sql/sql_base.cc:5878
      #12 0x0000558159887a12 in open_and_lock_tables (thd=thd@entry=0x14ab04001228, options=<optimized out>, tables=<optimized out>, tables@entry=0x14ab78140c00, derived=derived@entry=false, flags=flags@entry=0, prelocking_strategy=prelocking_strategy@entry=0x14ab78140bf8) at /test/11.3_opt/sql/sql_base.cc:5616
      #13 0x0000558159a0b10b in open_and_lock_tables (flags=0, derived=false, tables=0x14ab78140c00, thd=0x14ab04001228) at /test/11.3_opt/sql/sql_base.h:525
      #14 find_gtid_pos_tables_cb (thd=thd@entry=0x14ab04001228, table_name=table_name@entry=0x14ab04010830, arg=arg@entry=0x14ab78141650) at /test/11.3_opt/sql/rpl_rli.cc:1982
      #15 0x0000558159a0ab84 in scan_all_gtid_slave_pos_table (thd=0x14ab04001228, cb=0x558159a0af20 <find_gtid_pos_tables_cb(THD*, LEX_CSTRING*, void*)>, cb_data=0x14ab78141650) at /test/11.3_opt/sql/rpl_rli.cc:1720
      #16 0x0000558159a0de93 in find_gtid_slave_pos_tables (thd=0x14ab04001228) at /test/11.3_opt/sql/rpl_rli.cc:2024
      #17 0x00005581598384e8 in handle_slave_sql (arg=0x55815bdc43c0) at /test/11.3_opt/sql/slave.cc:5532
      #18 0x000014ab9254a609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #19 0x000014ab92136133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      11.3.0 8951f7d940166063db3fe64c35c40a5e5fabcf7d (Debug)

      mariadbd: /test/11.3_dbg/storage/rocksdb/ha_rocksdb.cc:3808: virtual void myrocks::Rdb_transaction_impl::set_name(): Assertion `s.ok()' failed.
      

      11.3.0 8951f7d940166063db3fe64c35c40a5e5fabcf7d (Debug)

      Core was generated by `/test/MD240823-mariadb-11.3.0-linux-x86_64-dbg/bin/mariadbd --no-defaults --cor'.
      Program terminated with signal SIGABRT, Aborted.
      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      [Current thread is 1 (Thread 0x148948bc7700 (LWP 1229032))]
      (gdb) bt
      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #1  0x000014897e533859 in __GI_abort () at abort.c:79
      #2  0x000014897e533729 in __assert_fail_base (fmt=0x14897e6c9588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x14894b73e953 "s.ok()", file=0x14894b740428 "/test/11.3_dbg/storage/rocksdb/ha_rocksdb.cc", line=3808, function=<optimized out>) at assert.c:92
      #3  0x000014897e544fd6 in __GI___assert_fail (assertion=assertion@entry=0x14894b73e953 "s.ok()", file=file@entry=0x14894b740428 "/test/11.3_dbg/storage/rocksdb/ha_rocksdb.cc", line=line@entry=3808, function=function@entry=0x14894b74a310 "virtual void myrocks::Rdb_transaction_impl::set_name()") at assert.c:101
      #4  0x000014894b1cdb23 in myrocks::Rdb_transaction_impl::set_name (this=<optimized out>) at /test/11.3_dbg/storage/rocksdb/rocksdb/include/rocksdb/status.h:294
      #5  0x000014894b1a36d0 in myrocks::rocksdb_register_tx (tx=0x1488a0017ad0, thd=0x1488a0001af8, hton=<optimized out>) at /test/11.3_dbg/storage/rocksdb/ha_rocksdb.cc:5168
      #6  myrocks::ha_rocksdb::external_lock (this=0x14889c01c5e0, thd=0x1488a0001af8, lock_type=0) at /test/11.3_dbg/storage/rocksdb/ha_rocksdb.cc:12212
      #7  0x000055a88257786e in handler::ha_external_lock (this=0x14889c01c5e0, thd=thd@entry=0x1488a0001af8, lock_type=lock_type@entry=0) at /test/11.3_dbg/sql/handler.cc:7346
      #8  0x000055a8826dfa79 in lock_external (count=1, tables=0x1488a0010f58, thd=0x1488a0001af8) at /test/11.3_dbg/sql/lock.cc:396
      #9  mysql_lock_tables (thd=thd@entry=0x1488a0001af8, sql_lock=sql_lock@entry=0x1488a0010f28, flags=flags@entry=0) at /test/11.3_dbg/sql/lock.cc:341
      #10 0x000055a8826e084a in mysql_lock_tables (thd=thd@entry=0x1488a0001af8, tables=tables@entry=0x1488a0010f20, count=count@entry=1, flags=flags@entry=0) at /test/11.3_dbg/sql/lock.cc:304
      #11 0x000055a8821e3900 in lock_tables (thd=thd@entry=0x1488a0001af8, tables=0x148948bc5b30, count=<optimized out>, flags=flags@entry=0) at /test/11.3_dbg/sql/sql_base.cc:5878
      #12 0x000055a8821e5656 in open_and_lock_tables (thd=thd@entry=0x1488a0001af8, options=<optimized out>, tables=<optimized out>, tables@entry=0x148948bc5b30, derived=derived@entry=false, flags=flags@entry=0, prelocking_strategy=prelocking_strategy@entry=0x148948bc5b28) at /test/11.3_dbg/sql/sql_base.cc:5616
      #13 0x000055a8823be810 in open_and_lock_tables (flags=0, derived=false, tables=0x148948bc5b30, thd=0x1488a0001af8) at /test/11.3_dbg/sql/sql_base.h:525
      #14 find_gtid_pos_tables_cb (thd=thd@entry=0x1488a0001af8, table_name=0x1488a0010b60, arg=arg@entry=0x148948bc6570) at /test/11.3_dbg/sql/rpl_rli.cc:1982
      #15 0x000055a8823be488 in scan_all_gtid_slave_pos_table (thd=thd@entry=0x1488a0001af8, cb=cb@entry=0x55a8823be4d2 <find_gtid_pos_tables_cb(THD*, LEX_CSTRING*, void*)>, cb_data=cb_data@entry=0x148948bc6570) at /test/11.3_dbg/sql/sql_array.h:138
      #16 0x000055a8823c1378 in find_gtid_slave_pos_tables (thd=0x1488a0001af8) at /test/11.3_dbg/sql/rpl_rli.cc:2024
      #17 0x000055a8821975ce in handle_slave_sql (arg=0x55a8858416a0) at /test/11.3_dbg/sql/slave.cc:5532
      #18 0x000014897ea44609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #19 0x000014897e630133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Attachments

        Activity

          People

            psergei Sergei Petrunia
            ramesh Ramesh Sivaraman
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.