Skip to content

Running MTR Tests for MyRocks

Sergei Petrunia edited this page Nov 19, 2018 · 3 revisions

This page describes an outsider' view of running MTR tests for MyRocks Storage Engine.

Running the tests

As mentioned in the Build-Steps, you need to pass several options to {{mysql-test-run}}. It is convenient to have a script

cat > rocksdb-mtr.sh <<EOF
#!/bin/bash -x

./mysql-test-run --mysqld=--default-storage-engine=rocksdb \
  --mysqld=--skip-innodb --mysqld=--default-tmp-storage-engine=MyISAM \
  --mysqld=--rocksdb "\$@"
EOF
chmod +x rocksdb-mtr.sh

Sizing

Tests are CPU and memory-heavy.

Running with --mem

This is the faster option. Known issues are:

  • rocksdb.persistent_cache will fail an assertion https://github.com/facebook/mysql-5.6/issues/579
  • Some tests require a lot of disk space. The biggest hogs seem to be rocksdb.bulk_load{,_rev_cf,_rev_cf_and_data} each of which will require require about 2.4G of disk space. It's easy to run out of space in /dev/shm and then these (or other) tests will fail with an error and/or assertion failure.

Running without --mem

Clone this wiki locally