From: Jay Zhuang Date: Mon, 30 May 2022 19:34:43 +0000 (-0700) Subject: Deflake Transaction stress tests (#10063) X-Git-Tag: v7.4.3~98 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0adac6f88eb5f0b68cda6b5cc8dbaa18794478e5;p=rocksdb.git Deflake Transaction stress tests (#10063) Summary: TSAN test is slower, for `TransactionStressTest` and `DeadlockStress`, they're reaching the timeout limit of 600 seconds. Decreasing the transaction test number. Pull Request resolved: https://github.com/facebook/rocksdb/pull/10063 Test Plan: CI Reviewed By: ajkr Differential Revision: D36711727 Pulled By: jay-zhuang fbshipit-source-id: 600f82a6d32108f52fbe5572fcc7497607b7fe98 --- diff --git a/utilities/transactions/transaction_test.cc b/utilities/transactions/transaction_test.cc index b0c34a649..d4a516dc9 100644 --- a/utilities/transactions/transaction_test.cc +++ b/utilities/transactions/transaction_test.cc @@ -873,7 +873,7 @@ TEST_P(TransactionStressTest, DeadlockCycle) { TEST_P(TransactionStressTest, DeadlockStress) { const uint32_t NUM_TXN_THREADS = 10; const uint32_t NUM_KEYS = 100; - const uint32_t NUM_ITERS = 10000; + const uint32_t NUM_ITERS = 1000; WriteOptions write_options; ReadOptions read_options; @@ -5480,7 +5480,7 @@ TEST_P(MySQLStyleTransactionTest, TransactionStressTest) { constexpr size_t num_checkers = 2; // checker threads count constexpr size_t num_slow_checkers = 2; // checker threads emulating backups constexpr size_t num_slow_workers = 1; // slow worker threads count - constexpr size_t num_transactions_per_thread = 10000; + constexpr size_t num_transactions_per_thread = 1000; constexpr uint16_t num_sets = 3; constexpr size_t num_keys_per_set = 100; // Setting the key-space to be 100 keys should cause enough write-conflicts