diff options
author | Changyu Bi <changyubi@meta.com> | 2024-01-11 15:54:11 -0800 |
---|---|---|
committer | Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> | 2024-01-11 15:54:11 -0800 |
commit | 9d58e3f63ad08e175dbfb3589cbb5813888288f6 (patch) | |
tree | c2b7b53bc3900f8b739dc774f46af6b9262bc4a1 | |
parent | 0758271d519bcc5d7266fec26ae1f3ab887aa130 (diff) |
Disable LockWAL() for multiops_wp_txn stress test (#12221)
Summary:
We test LockWAL() and UnlockWAL() by checking that latest sequence number is not changed: https://github.com/facebook/rocksdb/blob/1a1f9f166093e36541df0886505d9a87a4fbb887/db_stress_tool/db_stress_test_base.cc#L920-L937. With writeprepared transaction, sequence number can be advanced in SwitchMemtable::WriteRecoverableState() when writing recoverable state: https://github.com/facebook/rocksdb/blob/1a1f9f166093e36541df0886505d9a87a4fbb887/db/db_impl/db_impl_write.cc#L1560
This PR disables LockWAL() tests for writeprepared transaction for now. We probably need to change how we test LockWAL() for writeprepared before re-enabling this test.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/12221
Reviewed By: ajkr
Differential Revision: D52677076
Pulled By: cbi42
fbshipit-source-id: 27ee694878edf63e8f4ad52f769d4db401f511bc
-rw-r--r-- | tools/db_crashtest.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/db_crashtest.py b/tools/db_crashtest.py index e2434ea3c..0acfc3775 100644 --- a/tools/db_crashtest.py +++ b/tools/db_crashtest.py @@ -552,6 +552,9 @@ multiops_wp_txn_params = { "use_only_the_last_commit_time_batch_for_recovery": 1, "clear_wp_commit_cache_one_in": 10, "create_timestamped_snapshot_one_in": 0, + # sequence number can be advanced in SwitchMemtable::WriteRecoverableState() for WP. + # disable it for now until we find another way to test LockWAL(). + "lock_wal_one_in": 0, } def finalize_and_sanitize(src_params): |