Yanqin Jin
5894761056
Improve stress test for transactions (#9568)
Summary:
Test only, no change to functionality.
Extremely low risk of library regression.
Update test key generation by maintaining existing and non-existing keys.
Update db_crashtest.py to drive multiops_txn stress test for both write-committed and write-prepared.
Add a make target 'blackbox_crash_test_with_multiops_txn'.
Running the following commands caught the bug exposed in https://github.com/facebook/rocksdb/issues/9571.
```
$rm -rf /tmp/rocksdbtest/*
$./db_stress -progress_reports=0 -test_multi_ops_txns -use_txn -clear_column_family_one_in=0 \
-column_families=1 -writepercent=0 -delpercent=0 -delrangepercent=0 -customopspercent=60 \
-readpercent=20 -prefixpercent=0 -iterpercent=20 -reopen=0 -ops_per_thread=1000 -ub_a=10000 \
-ub_c=100 -destroy_db_initially=0 -key_spaces_path=/dev/shm/key_spaces_desc -threads=32 -read_fault_one_in=0
$./db_stress -progress_reports=0 -test_multi_ops_txns -use_txn -clear_column_family_one_in=0
-column_families=1 -writepercent=0 -delpercent=0 -delrangepercent=0 -customopspercent=60 -readpercent=20 \
-prefixpercent=0 -iterpercent=20 -reopen=0 -ops_per_thread=1000 -ub_a=10000 -ub_c=100 -destroy_db_initially=0 \
-key_spaces_path=/dev/shm/key_spaces_desc -threads=32 -read_fault_one_in=0
```
Running the following command caught a bug which will be fixed in https://github.com/facebook/rocksdb/issues/9648 .
```
$TEST_TMPDIR=/dev/shm make blackbox_crash_test_with_multiops_wc_txn
```
Pull Request resolved: https://github.com/facebook/rocksdb/pull/9568
Reviewed By: jay-zhuang
Differential Revision: D34308154
Pulled By: riversand963
fbshipit-source-id: 99ff1b65c19b46c471d2f2d3b47adcd342a1b9e7
2022-03-16 19:00:04 -07:00
..
2022-02-01 22:19:01 -08:00
2022-02-16 23:18:14 -08:00
2021-12-14 13:34:43 -08:00
2022-01-25 16:22:58 -08:00
2022-03-16 19:00:04 -07:00
2021-09-24 16:54:02 -07:00
2022-02-01 15:56:17 -08:00
2020-02-20 12:09:57 -08:00
2022-01-04 16:45:49 -08:00
2022-03-16 19:00:04 -07:00
2022-03-04 10:30:10 -08:00
2022-03-04 10:30:10 -08:00
2020-04-24 13:06:12 -07:00
2022-02-01 11:47:28 -08:00
2021-12-07 16:24:22 -08:00
2021-12-07 16:24:22 -08:00
2021-09-10 10:00:26 -07:00
2022-03-16 19:00:04 -07:00
2022-01-31 13:35:32 -08:00
2022-01-25 16:22:58 -08:00
2021-09-07 21:19:27 -07:00
2022-02-18 18:23:07 -08:00
2021-12-15 12:54:44 -08:00
2022-03-16 19:00:04 -07:00
2022-03-16 19:00:04 -07:00
2022-03-08 13:19:39 -08:00