Uploaded image for project: 'Percona Server'
  1. Percona Server
  2. PS-3991

Assertion `cmp != 0' failed in rocksdb::Status myrocks::Rdb_sst_file_ordered::put( const rocksdb::Slice&, const rocksdb::Slice&)

    XMLWordPrintable

    Details

      Description

      gdb

      #0 __pthread_kill (threadid=<optimized out>, signo=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:62
      62 ../sysdeps/unix/sysv/linux/pthread_kill.c: No such file or directory.
      [Current thread is 1 (Thread 0x7f86d3747700 (LWP 22692))]
      (gdb) bt
      +bt
      #0 __pthread_kill (threadid=<optimized out>, signo=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:62
      #1 0x000000000199cc45 in my_write_core (sig=6) at /qa/work/PS-5.7-trunk_dbg/mysys/stacktrace.c:249
      #2 0x0000000000f16a96 in handle_fatal_signal (sig=6) at /qa/work/PS-5.7-trunk_dbg/sql/signal_handler.cc:223
      #3 <signal handler called>
      #4 0x00007f86d11b0428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
      #5 0x00007f86d11b202a in __GI_abort () at abort.c:89
      #6 0x00007f86d11a8bd7 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x7f86a86be401 "cmp != 0", file=file@entry=0x7f86a86be280 "/qa/work/PS-5.7-trunk_dbg/storage/rocksdb/rdb_sst_info.cc", line=line@entry=254, function=function@entry=0x7f86a86bf700 <myrocks::Rdb_sst_file_ordered::put(rocksdb::Slice const&, rocksdb::Slice const&)::__PRETTY_FUNCTION__> "rocksdb::Status myrocks::Rdb_sst_file_ordered::put(const rocksdb::Slice&, const rocksdb::Slice&)") at assert.c:92
      #7 0x00007f86d11a8c82 in __GI___assert_fail (assertion=0x7f86a86be401 "cmp != 0", file=0x7f86a86be280 "/qa/work/PS-5.7-trunk_dbg/storage/rocksdb/rdb_sst_info.cc", line=254, function=0x7f86a86bf700 <myrocks::Rdb_sst_file_ordered::put(rocksdb::Slice const&, rocksdb::Slice const&)::__PRETTY_FUNCTION__> "rocksdb::Status myrocks::Rdb_sst_file_ordered::put(const rocksdb::Slice&, const rocksdb::Slice&)") at assert.c:101
      #8 0x00007f86a81e0a3e in myrocks::Rdb_sst_file_ordered::put (this=0x7f86a4c29100, key=..., value=...) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/rdb_sst_info.cc:254
      #9 0x00007f86a81e19b2 in myrocks::Rdb_sst_info::put (this=0x7f86a4d27100, key=..., value=...) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/rdb_sst_info.cc:442
      #10 0x00007f86a8133309 in myrocks::ha_rocksdb::bulk_load_key (this=0x7f86a482a830, tx=0x7f86a480b1e0, kd=..., key=..., value=...) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/ha_rocksdb.cc:7565
      #11 0x00007f86a81336ab in myrocks::ha_rocksdb::update_pk (this=0x7f86a482a830, kd=..., row_info=..., pk_changed=@0x7f86d3744b3b: false) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/ha_rocksdb.cc:7629
      #12 0x00007f86a8133cf0 in myrocks::ha_rocksdb::update_indexes (this=0x7f86a482a830, row_info=..., pk_changed=@0x7f86d3744b3b: false) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/ha_rocksdb.cc:7738
      #13 0x00007f86a8133f69 in myrocks::ha_rocksdb::update_write_row (this=0x7f86a482a830, old_data=0x0, new_data=0x7f86a4c88030 "\377", skip_unique_check=true) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/ha_rocksdb.cc:7803
      #14 0x00007f86a8132448 in myrocks::ha_rocksdb::write_row (this=0x7f86a482a830, buf=0x7f86a4c88030 "\377") at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/ha_rocksdb.cc:7244
      #15 0x0000000000fc0690 in handler::ha_write_row (this=0x7f86a482a830, buf=0x7f86a4c88030 "\377") at /qa/work/PS-5.7-trunk_dbg/sql/handler.cc:8434
      #16 0x0000000001873425 in write_record (thd=0x7f86a48fc000, table=0x7f86a490a820, info=0x7f86d3744ff0, update=0x7f86d3745070) at /qa/work/PS-5.7-trunk_dbg/sql/sql_insert.cc:1875
      #17 0x000000000187026f in Sql_cmd_insert::mysql_insert (this=0x7f86a4afe0b0, thd=0x7f86a48fc000, table_list=0x7f86a4afdb20) at /qa/work/PS-5.7-trunk_dbg/sql/sql_insert.cc:769
      #18 0x00000000018773af in Sql_cmd_insert::execute (this=0x7f86a4afe0b0, thd=0x7f86a48fc000) at /qa/work/PS-5.7-trunk_dbg/sql/sql_insert.cc:3117
      #19 0x0000000001633fce in mysql_execute_command (thd=0x7f86a48fc000, first_level=true) at /qa/work/PS-5.7-trunk_dbg/sql/sql_parse.cc:3748
      #20 0x000000000163a694 in mysql_parse (thd=0x7f86a48fc000, parser_state=0x7f86d37464a0) at /qa/work/PS-5.7-trunk_dbg/sql/sql_parse.cc:5891
      #21 0x000000000162e623 in dispatch_command (thd=0x7f86a48fc000, com_data=0x7f86d3746da0, command=COM_QUERY) at /qa/work/PS-5.7-trunk_dbg/sql/sql_parse.cc:1493
      #22 0x000000000162d3c4 in do_command (thd=0x7f86a48fc000) at /qa/work/PS-5.7-trunk_dbg/sql/sql_parse.cc:1021
      #23 0x000000000177fc04 in handle_connection (arg=0x7f86a4811040) at /qa/work/PS-5.7-trunk_dbg/sql/conn_handler/connection_handler_per_thread.cc:312
      #24 0x00000000019c1d89 in pfs_spawn_thread (arg=0x7f86c6be8720) at /qa/work/PS-5.7-trunk_dbg/storage/perfschema/pfs.cc:2188
      #25 0x00007f86d1df66ba in start_thread (arg=0x7f86d3747700) at pthread_create.c:333
      #26 0x00007f86d12823dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
      

      testcase

      # mysqld options required for replay: --plugin-load-add=rocksdb=ha_rocksdb.so --sql_mode=ONLY_FULL_GROUP_BY
      DROP DATABASE test;CREATE DATABASE test;USE test;
      create table t2(c1 int key,c2 char,ref_t1 int)engine=rocksdb;#ERRIN the ACTIVE state
      xa start,;#ERRIN the ACTIVE state
      set rocksdb_bulk_load=1;#NOERROR
      INSERT INTO t2 VALUES(),(),();#NOERROR
      

      mysqld version

      $ /qa/work/PS220817-percona-server-5.7.19-17-linux-x86_64-debug/bin/mysqld --version
      /qa/work/PS220817-percona-server-5.7.19-17-linux-x86_64-debug/bin/mysqld Ver 5.7.19-17-debug for Linux on x86_64 (MySQL Community Server (GPL))
      $
      

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                george.lorch George Lorch
                Reporter:
                ramesh.sivaraman Ramesh Sivaraman
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: