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

handle_fatal_signal (sig=11) in rocksdb::VersionSet::Recover | rocksdb/rocksdb/db/version_set.cc:2935

    XMLWordPrintable

    Details

      Description

      RocksDB startup is failing if we start the server with --plugin-load-add=RocksDB=ha_rocksdb.so --default-storage-engine=RocksDB --rocksdb-table-cache-numshardbits=100000000

      Testcase

      echo '=== Setting up directories...'
      rm -Rf /dev/shm/29239
      mkdir -p /dev/shm/29239/data /dev/shm/29239/tmp /dev/shm/29239/log
      #cp -R ./data/* /dev/shm/29239/data # When using this, please also remark the 'Data dir init' below to avoid overwriting the data directory
      echo '=== Data dir init...'
      /qa/work/PS270917-percona-server-5.7.19-17-linux-x86_64-debug/bin/mysqld --no-defaults --initialize-insecure --basedir=/qa/work/PS270917-percona-server-5.7.19-17-linux-x86_64-debug --datadir=/dev/shm/29239/data --tmpdir=/dev/shm/29239/tmp --core-file --port=55369 --pid_file=/dev/shm/29239/pid.pid --socket=/dev/shm/29239/socket.sock --log-output=none --log-error=/dev/shm/29239/log/master.err
      echo '=== Starting mysqld...'
      /qa/work/PS270917-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-table-cache-numshardbits=100000000 --basedir=/qa/work/PS270917-percona-server-5.7.19-17-linux-x86_64-debug --datadir=/dev/shm/29239/data --tmpdir=/dev/shm/29239/tmp --core-file --port=55369 --pid_file=/dev/shm/29239/pid.pid --socket=/dev/shm/29239/socket.sock --log-output=none --log-error=/dev/shm/29239/log/master.err > /dev/shm/29239/log/master.err 2>&1 &
      

      GDB info

      #0 __pthread_kill (threadid=<optimized out>, signo=11) at ../sysdeps/unix/sysv/linux/pthread_kill.c:62
      #1 0x000000000199cdb1 in my_write_core (sig=11) at /qa/work/PS-5.7-trunk_dbg/mysys/stacktrace.c:249
      #2 0x0000000000f16b86 in handle_fatal_signal (sig=11) at /qa/work/PS-5.7-trunk_dbg/sql/signal_handler.cc:223
      #3 <signal handler called>
      #4 0x00007f93976d4027 in rocksdb::VersionSet::Recover (this=0x53c2920, column_families=std::vector of length 1, capacity 1 = {...}, read_only=false) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/rocksdb/db/version_set.cc:2935
      #5 0x00007f9397609a42 in rocksdb::DBImpl::Recover (this=0x53bfa10, column_families=std::vector of length 1, capacity 1 = {...}, read_only=false, error_if_log_file_exist=false, error_if_data_exists_in_logs=false) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/rocksdb/db/db_impl_open.cc:350
      #6 0x00007f939760d26b in rocksdb::DB::Open (db_options=..., dbname="./.rocksdb", column_families=std::vector of length 1, capacity 1 = {...}, handles=0x7ffde96965e0, dbptr=0x7ffde96961e8) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/rocksdb/db/db_impl_open.cc:974
      #7 0x00007f93979a0b80 in rocksdb::TransactionDB::Open (db_options=..., txn_db_options=..., dbname="./.rocksdb", column_families=std::vector of length 1, capacity 1 = {...}, handles=0x7ffde96965e0, dbptr=0x7f9397fd8c28 <myrocks::rdb>) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/rocksdb/utilities/transactions/transaction_db_impl.cc:179
      #8 0x00007f93974372c9 in myrocks::rocksdb_init_func (p=0x4974be0) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/ha_rocksdb.cc:3531
      #9 0x0000000000fae3bf in ha_initialize_handlerton (plugin=0x53aa530) at /qa/work/PS-5.7-trunk_dbg/sql/handler.cc:871
      #10 0x0000000001663e19 in plugin_initialize (plugin=0x53aa530) at /qa/work/PS-5.7-trunk_dbg/sql/sql_plugin.cc:1223
      #11 0x000000000166423a in plugin_init_initialize_and_reap () at /qa/work/PS-5.7-trunk_dbg/sql/sql_plugin.cc:1378
      #12 0x0000000001664c74 in plugin_init (argc=0x2e3e210 <remaining_argc>, argv=0x48112f0, flags=0) at /qa/work/PS-5.7-trunk_dbg/sql/sql_plugin.cc:1609
      #13 0x0000000000f04829 in init_server_components () at /qa/work/PS-5.7-trunk_dbg/sql/mysqld.cc:4293
      #14 0x0000000000f05f28 in mysqld_main (argc=14, argv=0x48112f0) at /qa/work/PS-5.7-trunk_dbg/sql/mysqld.cc:5001
      #15 0x0000000000efcb26 in main (argc=14, argv=0x7ffde9697e18) at /qa/work/PS-5.7-trunk_dbg/sql/main.cc:25
      (gdb)

       

        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: