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

Assertion `status.ok()' failed in virtual rocks db::Status rocksdb::BlockCacheTier::Open()

    Details

      Description

      PS RocksDB is failing with customĀ --rocksdb-persistent-cache-size-mb startup option.

      GDB info

      #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 0x00007f0678906428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
      #5 0x00007f067890802a in __GI_abort () at abort.c:89
      #6 0x00007f06788febd7 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x7f0641b92580 "status.ok()", file=file@entry=0x7f0641b92518 "/qa/work/PS-5.7-trunk_dbg/storage/rocksdb/rocksdb/utilities/persistent_cache/block_cache_tier.cc", line=line@entry=33, function=function@entry=0x7f0641b93c60 <rocksdb::BlockCacheTier::Open()::__PRETTY_FUNCTION__> "virtual rocksdb::Status rocksdb::BlockCacheTier::Open()") at assert.c:92
      #7 0x00007f06788fec82 in __GI___assert_fail (assertion=0x7f0641b92580 "status.ok()", file=0x7f0641b92518 "/qa/work/PS-5.7-trunk_dbg/storage/rocksdb/rocksdb/utilities/persistent_cache/block_cache_tier.cc", line=33, function=0x7f0641b93c60 <rocksdb::BlockCacheTier::Open()::__PRETTY_FUNCTION__> "virtual rocksdb::Status rocksdb::BlockCacheTier::Open()") at assert.c:101
      #8 0x00007f06419a831d in rocksdb::BlockCacheTier::Open (this=0x4dae8f0) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/rocksdb/utilities/persistent_cache/block_cache_tier.cc:33
      #9 0x00007f06419ab04a in rocksdb::NewPersistentCache (env=0x7f0641ff57c0 <rocksdb::Env::Default()::default_env>, path="", size=31457280, log=std::shared_ptr (count 5, weak 0) 0x4dadaf0, optimized_for_nvm=true, cache=0x7fff02f94ac0) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/rocksdb/utilities/persistent_cache/block_cache_tier.cc:413
      #10 0x00007f0641521038 in myrocks::rocksdb_init_func (p=0x482e870) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/ha_rocksdb.cc:3368
      #11 0x0000000000fae2cf in ha_initialize_handlerton (plugin=0x4d98438) at /qa/work/PS-5.7-trunk_dbg/sql/handler.cc:871
      #12 0x0000000001663d29 in plugin_initialize (plugin=0x4d98438) at /qa/work/PS-5.7-trunk_dbg/sql/sql_plugin.cc:1223
      #13 0x000000000166414a in plugin_init_initialize_and_reap () at /qa/work/PS-5.7-trunk_dbg/sql/sql_plugin.cc:1378
      #14 0x0000000001664b84 in plugin_init (argc=0x2e3c210 <remaining_argc>, argv=0x46cb2f0, flags=0) at /qa/work/PS-5.7-trunk_dbg/sql/sql_plugin.cc:1609
      #15 0x0000000000f04739 in init_server_components () at /qa/work/PS-5.7-trunk_dbg/sql/mysqld.cc:4293
      #16 0x0000000000f05e38 in mysqld_main (argc=14, argv=0x46cb2f0) at /qa/work/PS-5.7-trunk_dbg/sql/mysqld.cc:5001
      #17 0x0000000000efca36 in main (argc=14, argv=0x7fff02f96228) at /qa/work/PS-5.7-trunk_dbg/sql/main.cc:25
      (gdb)

      Testcase. Please change the basedir as per your settings.

      echo '=== Setting up directories...'
      rm -Rf /dev/shm/666224/1
      mkdir -p /dev/shm/666224/1/data /dev/shm/666224/1/tmp /dev/shm/666224/1/log
      
      echo '=== Data dir init...'
      
      /qa/work/PS220817-percona-server-5.7.19-17-linux-x86_64-debug/bin/mysqld --no-defaults --initialize-insecure --basedir=/qa/work/PS220817-percona-server-5.7.19-17-linux-x86_64-debug --datadir=/dev/shm/666224/1/data --tmpdir=/dev/shm/666224/1/tmp --core-file --port=54389 --pid_file=/dev/shm/666224/1/pid.pid --socket=/dev/shm/666224/1/socket.sock --log-output=none --log-error=/dev/shm/666224/1/log/master.err
      
      echo '=== Starting mysqld...'
      /qa/work/PS220817-percona-server-5.7.19-17-linux-x86_64-debug/bin/mysqld --no-defaults --plugin-load-add=RocksDB=ha_rocksdb.so --default-storage-engine=RocksDB --rocksdb-persistent-cache-size-mb=30 --basedir=/qa/work/PS220817-percona-server-5.7.19-17-linux-x86_64-debug --datadir=/dev/shm/666224/1/data --tmpdir=/dev/shm/666224/1/tmp --core-file --port=54389 --pid_file=/dev/shm/666224/1/pid.pid --socket=/dev/shm/666224/1/socket.sock --log-output=none --log-error=/dev/shm/666224/1/log/master.err > /dev/shm/666224/1/log/master.err 2>&1
      

        Smart Checklist

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: