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

Assertion `log.getting_synced' failed in rocksdb::DBImpl::MarkLogsSynced(uint64_t, bool, const rocksdb::Status&)

    XMLWordPrintable

    Details

      Description

      Testcase

      # mysqld options required for replay: --plugin-load-add=RocksDB=ha_rocksdb.so --default-storage-engine=RocksDB --rocksdb-use-direct-io-for-flush-and-compaction=1
      CREATE TABLE t1(c1 INT,c2 CHAR)PARTITION BY LINEAR KEY(c1) PARTITIONS 5;
      insert into t1 values(0,0);
      drop TABLE t1;
      

      GDB info

      #0 __pthread_kill (threadid=<optimized out>, signo=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:62
      #1 0x000000000199cdb1 in my_write_core (sig=6) at /qa/work/PS-5.7-trunk_dbg/mysys/stacktrace.c:249
      #2 0x0000000000f16b86 in handle_fatal_signal (sig=6) at /qa/work/PS-5.7-trunk_dbg/sql/signal_handler.cc:223
      #3 <signal handler called>
      #4 0x00007fbdb2032428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
      #5 0x00007fbdb203402a in __GI_abort () at abort.c:89
      #6 0x00007fbdb202abd7 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x7fbd88a85dff "log.getting_synced", file=file@entry=0x7fbd88a85498 "/qa/work/PS-5.7-trunk_dbg/storage/rocksdb/rocksdb/db/db_impl.cc", line=line@entry=708, function=function@entry=0x7fbd88a8a5a0 <rocksdb::DBImpl::MarkLogsSynced(unsigned long, bool, rocksdb::Status const&)::__PRETTY_FUNCTION__> "void rocksdb::DBImpl::MarkLogsSynced(uint64_t, bool, const rocksdb::Status&)") at assert.c:92
      #7 0x00007fbdb202ac82 in __GI___assert_fail (assertion=0x7fbd88a85dff "log.getting_synced", file=0x7fbd88a85498 "/qa/work/PS-5.7-trunk_dbg/storage/rocksdb/rocksdb/db/db_impl.cc", line=708, function=0x7fbd88a8a5a0 <rocksdb::DBImpl::MarkLogsSynced(unsigned long, bool, rocksdb::Status const&)::__PRETTY_FUNCTION__> "void rocksdb::DBImpl::MarkLogsSynced(uint64_t, bool, const rocksdb::Status&)") at assert.c:101
      #8 0x00007fbd885b0775 in rocksdb::DBImpl::MarkLogsSynced (this=0x7fbdb14c3a00, up_to=11, synced_dir=true, status=...) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/rocksdb/db/db_impl.cc:708
      #9 0x00007fbd885d9019 in rocksdb::DBImpl::WriteImpl (this=0x7fbdb14c3a00, write_options=..., my_batch=0x7fbd85c3a0b0, callback=0x0, log_used=0x0, log_ref=0, disable_memtable=false) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/rocksdb/db/db_impl_write.cc:292
      #10 0x00007fbd885d7dad in rocksdb::DBImpl::Write (this=0x7fbdb14c3a00, write_options=..., my_batch=0x7fbd85c3a0b0) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/rocksdb/db/db_impl_write.cc:49
      #11 0x00007fbd884a354c in myrocks::Rdb_dict_manager::commit (this=0x7fbd88fd8c40 <myrocks::dict_manager>, batch=0x7fbd85c3a0b0, sync=@0x7fbd7eff0c00: true) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/rdb_datadic.cc:4017
      #12 0x00007fbd884a49b1 in myrocks::Rdb_dict_manager::finish_indexes_operation (this=0x7fbd88fd8c40 <myrocks::dict_manager>, gl_index_ids=std::unordered_set with 2 elements = {...}, dd_type=myrocks::Rdb_key_def::DDL_DROP_INDEX_ONGOING) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/rdb_datadic.cc:4428
      #13 0x00007fbd8845e0ec in myrocks::Rdb_dict_manager::finish_drop_indexes (this=0x7fbd88fd8c40 <myrocks::dict_manager>, gl_index_ids=std::unordered_set with 2 elements = {...}) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/./rdb_datadic.h:1223
      #14 0x00007fbd88449ce3 in myrocks::Rdb_drop_index_thread::run (this=0x7fbd88fe7880 <myrocks::rdb_drop_idx_thread>) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/ha_rocksdb.cc:9119
      #15 0x00007fbd884fcd24 in myrocks::Rdb_thread::thread_func (thread_ptr=0x7fbd88fe7880 <myrocks::rdb_drop_idx_thread>) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/rdb_threads.cc:31
      #16 0x00000000019c1ef5 in pfs_spawn_thread (arg=0x7fbda77e7620) at /qa/work/PS-5.7-trunk_dbg/storage/perfschema/pfs.cc:2188
      #17 0x00007fbdb2c766ba in start_thread (arg=0x7fbd7eff1700) at pthread_create.c:333
      #18 0x00007fbdb21043dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
      

       

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 50 minutes
                50m