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

storage/rocksdb/ha_rocksdb.cc:4652: ulonglong myrocks::ha_rocksdb::load_auto_incr_value_from_index(): Assertion `dd_val >= last_val' failed.

    Details

      Description

      DROP DATABASE test; CREATE DATABASE test; USE test;
      CREATE TABLE t1 (pk INT AUTO_INCREMENT, a INT, PRIMARY KEY(pk)) ENGINE=RocksDB;
      INSERT INTO t1 (a) VALUES (1);
      UPDATE t1 SET pk = 3;
      ALTER TABLE t1 AUTO_INCREMENT 2;

      #0  0x00007ffff62ed428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
      #1  0x00007ffff62ef02a in __GI_abort () at abort.c:89
      #2  0x00007ffff62e5bd7 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x7fffcb511bc8 "dd_val >= last_val", file=file@entry=0x7fffcb50d730 "/home/glorch/dev/PS/percona-server-5.7/storage/rocksdb/ha_rocksdb.cc", line=line@entry=4652, 
          function=function@entry=0x7fffcb5169c0 <myrocks::ha_rocksdb::load_auto_incr_value_from_index()::__PRETTY_FUNCTION__> "ulonglong myrocks::ha_rocksdb::load_auto_incr_value_from_index()") at assert.c:92
      #3  0x00007ffff62e5c82 in __GI___assert_fail (assertion=0x7fffcb511bc8 "dd_val >= last_val", file=0x7fffcb50d730 "/home/glorch/dev/PS/percona-server-5.7/storage/rocksdb/ha_rocksdb.cc", line=4652, 
          function=0x7fffcb5169c0 <myrocks::ha_rocksdb::load_auto_incr_value_from_index()::__PRETTY_FUNCTION__> "ulonglong myrocks::ha_rocksdb::load_auto_incr_value_from_index()") at assert.c:101
      #4  0x00007fffcae24754 in myrocks::ha_rocksdb::load_auto_incr_value_from_index (this=0x7fffac499030) at /home/glorch/dev/PS/percona-server-5.7/storage/rocksdb/ha_rocksdb.cc:4652
      #5  0x00007fffcae3b1df in myrocks::ha_rocksdb::prepare_inplace_alter_table (this=0x7fffac499030, altered_table=0x7fffac65fe20, ha_alter_info=0x7ffff7f6c1b0) at /home/glorch/dev/PS/percona-server-5.7/storage/rocksdb/ha_rocksdb.cc:11170
      #6  0x0000000000f61d59 in handler::ha_prepare_inplace_alter_table (this=0x7fffac499030, altered_table=0x7fffac65fe20, ha_alter_info=0x7ffff7f6c1b0) at /home/glorch/dev/PS/percona-server-5.7/sql/handler.cc:5113
      #7  0x0000000001680c1a in mysql_inplace_alter_table (thd=0x7fffac419000, table_list=0x7fffac4279d8, table=0x7fffac4c9020, altered_table=0x7fffac65fe20, ha_alter_info=0x7ffff7f6c1b0, inplace_supported=HA_ALTER_INPLACE_SHARED_LOCK_AFTER_PREPARE, 
          target_mdl_request=0x7ffff7f6c3d0, alter_ctx=0x7ffff7f6cb20) at /home/glorch/dev/PS/percona-server-5.7/sql/sql_table.cc:7835
      #8  0x0000000001686edd in mysql_alter_table (thd=0x7fffac419000, new_db=0x7fffac427f60 "test", new_name=0x0, create_info=0x7ffff7f6dba0, table_list=0x7fffac4279d8, alter_info=0x7ffff7f6dad0) at /home/glorch/dev/PS/percona-server-5.7/sql/sql_table.cc:10314
      #9  0x0000000001893a80 in Sql_cmd_alter_table::execute (this=0x7fffac427f70, thd=0x7fffac419000) at /home/glorch/dev/PS/percona-server-5.7/sql/sql_alter.cc:349
      #10 0x00000000015e2f30 in mysql_execute_command (thd=0x7fffac419000, first_level=true) at /home/glorch/dev/PS/percona-server-5.7/sql/sql_parse.cc:5130
      #11 0x00000000015e51ff in mysql_parse (thd=0x7fffac419000, parser_state=0x7ffff7f6f480, update_userstat=false) at /home/glorch/dev/PS/percona-server-5.7/sql/sql_parse.cc:5899
      #12 0x00000000015d9377 in dispatch_command (thd=0x7fffac419000, com_data=0x7ffff7f6fda0, command=COM_QUERY) at /home/glorch/dev/PS/percona-server-5.7/sql/sql_parse.cc:1528
      #13 0x00000000015d8107 in do_command (thd=0x7fffac419000) at /home/glorch/dev/PS/percona-server-5.7/sql/sql_parse.cc:1053
      #14 0x000000000171da34 in handle_connection (arg=0x7fffd62df490) at /home/glorch/dev/PS/percona-server-5.7/sql/conn_handler/connection_handler_per_thread.cc:312
      #15 0x0000000001a13f6c in pfs_spawn_thread (arg=0x7fffebbed720) at /home/glorch/dev/PS/percona-server-5.7/storage/perfschema/pfs.cc:2190
      #16 0x00007ffff798a6ba in start_thread (arg=0x7ffff7f70700) at pthread_create.c:333
      #17 0x00007ffff63bf41d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
      

        Smart Checklist

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  george.lorch George Lorch
                  Reporter:
                  george.lorch George Lorch
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: