---
title: crash_test测试
description: "crash_test测试分为两种模式，一种是简单模式，一种是普通模式，简单模式是指在数据库仅存在一个column family，也就是默认的column family：“default”，测试命令中有“--simple”参数。而普通模式则存在多个column family，测试时个数是10个。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengdbs/ecosystemEnable/RocksDB/openmind_rocksdb6102_stress_11_0010.html
sourcePath: /source/zh/kunpengdbs/ecosystemEnable/RocksDB/openmind_rocksdb6102_stress_11_0010.html
indexId: 802985d8294ca3ea5427e9f5dee11be831f60af393fd2b96ca8b9e18de02382786
---
# crash_test测试

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


1. 进入RocksDB源码解压包。
  1 cd /home/rocksdb-6.10.2

2. 进行简单模式的黑盒测试。
  1 python -u tools/db_crashtest.py --simple blackbox

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

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

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