crash_test测试

crash_test测试分为两种模式,一种是简单模式,一种是普通模式,简单模式是指在数据库仅存在一个column family,也就是默认的column family:“default”,测试命令中有“--simple”参数。而普通模式则存在多个column family,测试时个数是10个。
- 进入RocksDB源码解压包。
cd /home/rocksdb-6.10.2
- 进行简单模式的黑盒测试。
python -u tools/db_crashtest.py --simple blackbox
- 进行简单模式的白盒测试。
python -u tools/db_crashtest.py --simple whitebox --random_kill_odd 888887
- 进行普通模式的黑盒测试。
python -u tools/db_crashtest.py blackbox
- 进行普通模式的白盒测试。
python -u tools/db_crashtest.py whitebox --random_kill_odd 888887
父主题: 测试方式1