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
main
Jay Zhuang 2 years ago committed by Facebook GitHub Bot
parent 460b44c07f
commit 0adac6f88e
  1. 4
      utilities/transactions/transaction_test.cc

@ -873,7 +873,7 @@ TEST_P(TransactionStressTest, DeadlockCycle) {
TEST_P(TransactionStressTest, DeadlockStress) { TEST_P(TransactionStressTest, DeadlockStress) {
const uint32_t NUM_TXN_THREADS = 10; const uint32_t NUM_TXN_THREADS = 10;
const uint32_t NUM_KEYS = 100; const uint32_t NUM_KEYS = 100;
const uint32_t NUM_ITERS = 10000; const uint32_t NUM_ITERS = 1000;
WriteOptions write_options; WriteOptions write_options;
ReadOptions read_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_checkers = 2; // checker threads count
constexpr size_t num_slow_checkers = 2; // checker threads emulating backups 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_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 uint16_t num_sets = 3;
constexpr size_t num_keys_per_set = 100; constexpr size_t num_keys_per_set = 100;
// Setting the key-space to be 100 keys should cause enough write-conflicts // Setting the key-space to be 100 keys should cause enough write-conflicts

Loading…
Cancel
Save