鲲鹏社区首页
中文
注册
我要评分
文档获取效率
文档正确性
内容完整性
文档易理解
在线提单
论坛求助

crash_test测试

crash_test测试分为两种模式,一种是简单模式,一种是普通模式,简单模式是指在数据库仅存在一个column family,也就是默认的column family:“default”,测试命令中有“--simple”参数。而普通模式则存在多个column family,测试时个数是10个。

  1. 进入RocksDB源码解压包。
    cd /home/rocksdb-6.10.2
  2. 进行简单模式的黑盒测试。
    python -u tools/db_crashtest.py --simple blackbox

  3. 进行简单模式的白盒测试。
    python -u tools/db_crashtest.py --simple whitebox --random_kill_odd 888887

  4. 进行普通模式的黑盒测试。
    python -u tools/db_crashtest.py blackbox

  5. 进行普通模式的白盒测试。
    python -u tools/db_crashtest.py whitebox  --random_kill_odd 888887