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

Assertion `!options.use_direct_reads' failed | rocksdb::PosixMmapReadableFile::PosixMmapReadableFile(int, const string&, void*, size_t, const rocksdb::EnvOptions&)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: On Hold
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: 8.0.12-2rc1, 5.7.23-23
    • Fix Version/s: None
    • Component/s: MyRocks

      Description

      Testcase

      echo '=== Setting up directories...'
      rm -Rf /dev/shm/5073180/574
      mkdir -p /dev/shm/5073180/574/data /dev/shm/5073180/574/tmp /dev/shm/5073180/574/log
      #cp -R ./data/* /dev/shm/5073180/574/data  # When using this, please also remark the 'Data dir init' below to avoid overwriting the data directory
      echo '=== Data dir init...'
      /qa/ps/work/PS011118-percona-server-5.7.23-24-linux-x86_64-debug/bin/mysqld --no-defaults --initialize-insecure --basedir=/qa/ps/work/PS011118-percona-server-5.7.23-24-linux-x86_64-debug --datadir=/dev/shm/5073180/574/data --tmpdir=/dev/shm/5073180/574/tmp --core-file --port=57911 --pid_file=/dev/shm/5073180/574/pid.pid --socket=/dev/shm/5073180/574/socket.sock --log-output=none --log-error=/dev/shm/5073180/574/log/master.err
      echo '=== Starting mysqld...'
      /qa/ps/work/PS011118-percona-server-5.7.23-24-linux-x86_64-debug/bin/mysqld --no-defaults  --log-output=none --sql_mode=ONLY_FULL_GROUP_BY  --plugin-load-add=RocksDB=ha_rocksdb.so   --rocksdb-use-direct-io-for-flush-and-compaction=1 --rocksdb-block-cache-size=10000000 --rocksdb-allow-mmap-reads=1 --basedir=/qa/ps/work/PS011118-percona-server-5.7.23-24-linux-x86_64-debug --datadir=/dev/shm/5073180/574/data --tmpdir=/dev/shm/5073180/574/tmp         --core-file --port=57911 --pid_file=/dev/shm/5073180/574/pid.pid --socket=/dev/shm/5073180/574/socket.sock         --log-output=none --log-error=/dev/shm/5073180/574/log/master.err > /dev/shm/5073180/574/log/master.err 2>&1 

       

      GDB info

      #0  __pthread_kill (threadid=<optimized out>, signo=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:62
      #1  0x00000000019d8a14 in my_write_core (sig=6) at /qa/ps/work/release-5.7.23-24_dbg/mysys/stacktrace.c:249
      #2  0x00000000017290f6 in handle_fatal_signal (sig=6) at /qa/ps/work/release-5.7.23-24_dbg/sql/signal_handler.cc:223
      #3  <signal handler called>
      #4  0x00007fc2f4fc9428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
      #5  0x00007fc2f4fcb02a in __GI_abort () at abort.c:89
      #6  0x00007fc2f4fc1bd7 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x7fc29666aeaf "!options.use_direct_reads", file=file@entry=0x7fc29666abe8 "/qa/ps/work/release-5.7.23-24_dbg/storage/rocksdb/rocksdb/env/io_posix.cc", line=line@entry=450, function=function@entry=0x7fc29666cde0 <rocksdb::PosixMmapReadableFile::PosixMmapReadableFile(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, void*, unsigned long, rocksdb::EnvOptions const&)::__PRETTY_FUNCTION__> "rocksdb::PosixMmapReadableFile::PosixMmapReadableFile(int, const string&, void*, size_t, const rocksdb::EnvOptions&)") at assert.c:92
      #7  0x00007fc2f4fc1c82 in __GI___assert_fail (assertion=0x7fc29666aeaf "!options.use_direct_reads", file=0x7fc29666abe8 "/qa/ps/work/release-5.7.23-24_dbg/storage/rocksdb/rocksdb/env/io_posix.cc", line=450, function=0x7fc29666cde0 <rocksdb::PosixMmapReadableFile::PosixMmapReadableFile(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, void*, unsigned long, rocksdb::EnvOptions const&)::__PRETTY_FUNCTION__> "rocksdb::PosixMmapReadableFile::PosixMmapReadableFile(int, const string&, void*, size_t, const rocksdb::EnvOptions&)") at assert.c:101
      #8  0x00007fc2961f872a in rocksdb::PosixMmapReadableFile::PosixMmapReadableFile (this=0x56aaac0, fd=21, fname="./.rocksdb/IDENTITY", base=0x7fc2e96b8000, length=37, options=...) at /qa/ps/work/release-5.7.23-24_dbg/storage/rocksdb/rocksdb/env/io_posix.cc:450
      #9  0x00007fc2961ea392 in rocksdb::(anonymous namespace)::PosixEnv::NewRandomAccessFile (this=0x7fc296bf86a0 <rocksdb::Env::Default()::default_env>, fname="./.rocksdb/IDENTITY", result=0x7ffcaee0f330, options=...) at /qa/ps/work/release-5.7.23-24_dbg/storage/rocksdb/rocksdb/env/env_posix.cc:241
      #10 0x00007fc2960aca5c in rocksdb::DBImpl::Recover (this=0x56356b0, 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/ps/work/release-5.7.23-24_dbg/storage/rocksdb/rocksdb/db/db_impl_open.cc:360
      #11 0x00007fc2960b0c03 in rocksdb::DBImpl::Open (db_options=..., dbname="./.rocksdb", column_families=std::vector of length 1, capacity 1 = {...}, handles=0x7ffcaee0fee0, dbptr=0x7ffcaee0fa68, seq_per_batch=false) at /qa/ps/work/release-5.7.23-24_dbg/storage/rocksdb/rocksdb/db/db_impl_open.cc:1067
      #12 0x00007fc2964cc6f7 in rocksdb::TransactionDB::Open (db_options=..., txn_db_options=..., dbname="./.rocksdb", column_families=std::vector of length 1, capacity 1 = {...}, handles=0x7ffcaee0fee0, dbptr=0x7fc296bd7868 <myrocks::rdb>) at /qa/ps/work/release-5.7.23-24_dbg/storage/rocksdb/rocksdb/utilities/transactions/pessimistic_transaction_db.cc:228
      #13 0x00007fc295eb6038 in myrocks::rocksdb_init_func (p=0x4b369e0) at /qa/ps/work/release-5.7.23-24_dbg/storage/rocksdb/ha_rocksdb.cc:4203
      #14 0x0000000000f3c7cb in ha_initialize_handlerton (plugin=0x562f240) at /qa/ps/work/release-5.7.23-24_dbg/sql/handler.cc:873
      #15 0x00000000015f339a in plugin_initialize (plugin=0x562f240) at /qa/ps/work/release-5.7.23-24_dbg/sql/sql_plugin.cc:1252
      #16 0x00000000015f37bb in plugin_init_initialize_and_reap () at /qa/ps/work/release-5.7.23-24_dbg/sql/sql_plugin.cc:1407
      #17 0x00000000015f4429 in plugin_register_dynamic_and_init_all (argc=0x2f15b10 <remaining_argc>, argv=0x49ff710, flags=0) at /qa/ps/work/release-5.7.23-24_dbg/sql/sql_plugin.cc:1692
      #18 0x0000000001719130 in init_server_components () at /qa/ps/work/release-5.7.23-24_dbg/sql/mysqld.cc:4363
      #19 0x000000000171aa58 in mysqld_main (argc=17, argv=0x49ff710) at /qa/ps/work/release-5.7.23-24_dbg/sql/mysqld.cc:5131
      #20 0x0000000000f1bcd6 in main (argc=17, argv=0x7ffcaee116f8) at /qa/ps/work/release-5.7.23-24_dbg/sql/main.cc:25
       

        Smart Checklist

          Attachments

            Issue Links

              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:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 4 hours
                    4h