Rate This Document
Findability
Accuracy
Completeness
Readability

Performing the Crash Test

The crash test can be performed in two modes: simple mode and common mode. In simple mode, only one column family (default) exists in the database, and the test command contains the --simple parameter. In common mode, there are multiple column families (10 in this example).

  1. Go to the RocksDB source package directory.
    cd /home/rocksdb-6.10.2
  2. Perform a black-box test in simple mode.
    python -u tools/db_crashtest.py --simple blackbox

  3. Perform a white-box test in simple mode.
    python -u tools/db_crashtest.py --simple whitebox --random_kill_odd 888887

  4. Perform a black-box test in common mode.
    python -u tools/db_crashtest.py blackbox

  5. Perform a white-box test in common mode.
    python -u tools/db_crashtest.py whitebox  --random_kill_odd 888887