Introduction
Test Overview
The stress test is a method of the crash test on RocksDB. During the stress test, multiple operations are performed on a single database to make the database program crash occasionally. After the database crashes, it is restarted. Each time the database crashes, it restarts with new options. The options are randomly enabled or disabled. During the stress test, multiple operations are performed on and random inputs are sent to the database at the same time, and data is continuously verified. (Each time the database restarts, the stress test verifies all data.)
The test tool is compiled in debugging mode. Therefore, assertions may be triggered. In this document, black-box and white-box tests are used to test the database stability under multiple database operations and verify that the database can stably restart after it crashes, so as to ensure data security.