From 469164dc3c25bbf1128b9f2ddcd301a304634e0e Mon Sep 17 00:00:00 2001 From: Yanqin Jin Date: Wed, 24 Mar 2021 17:57:39 -0700 Subject: [PATCH] Add stress crash test with timestamp to lego determinator (#8104) Summary: As title. Pull Request resolved: https://github.com/facebook/rocksdb/pull/8104 Test Plan: build_tools/rocksdb-lego-determinator stress_crash_with_ts Reviewed By: ltamasi Differential Revision: D27312265 Pulled By: riversand963 fbshipit-source-id: 3175a9d9074bdb282137c6518402d622436931d6 --- build_tools/rocksdb-lego-determinator | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/build_tools/rocksdb-lego-determinator b/build_tools/rocksdb-lego-determinator index a9bde6ccb19..3b4637b82e6 100755 --- a/build_tools/rocksdb-lego-determinator +++ b/build_tools/rocksdb-lego-determinator @@ -548,6 +548,36 @@ STRESS_CRASH_TEST_WITH_TXN_COMMANDS="[ } ]" +# +# RocksDB stress/crash test with timestamp +# +STRESS_CRASH_TEST_WITH_TS_COMMANDS="[ + { + 'name':'Rocksdb Stress and Crash Test with ts', + 'oncall':'$ONCALL', + 'executeLocal': 'true', + 'timeout': 86400, + 'steps': [ + $CLEANUP_ENV, + { + 'name':'Build and run RocksDB debug stress tests', + 'shell':'cd $WORKING_DIR; $SHM $DEBUG $NON_TSAN_CRASH make J=1 db_stress || $CONTRUN_NAME=db_stress $TASK_CREATION_TOOL', + 'user':'root', + $PARSER + }, + { + 'name':'Build and run RocksDB debug crash tests with ts', + 'timeout': 86400, + 'shell':'cd $WORKING_DIR; $SHM $DEBUG $NON_TSAN_CRASH make J=1 crash_test_with_ts || $CONTRUN_NAME=crash_test_with_ts $TASK_CREATION_TOOL', + 'user':'root', + $PARSER + }, + $UPLOAD_DB_DIR, + ], + $REPORT + } +]" + # RocksDB write stress test. # We run on disk device on purpose (i.e. no $SHM) # because we want to add some randomness to fsync commands @@ -1220,6 +1250,9 @@ case $1 in stress_crash_with_txn) echo $STRESS_CRASH_TEST_WITH_TXN_COMMANDS ;; + stress_crash_with_ts) + echo $STRESS_CRASH_TEST_WITH_TS_COMMANDS + ;; write_stress) echo $WRITE_STRESS_COMMANDS ;;