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).
- Go to the RocksDB source package directory.
cd /home/rocksdb-6.10.2
- Perform a black-box test in simple mode.
python -u tools/db_crashtest.py --simple blackbox

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

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

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

Parent topic: Test Method 1