Skip to content

Commit

Permalink
Deflake Transaction stress tests (facebook#10063)
Browse files Browse the repository at this point in the history
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: facebook#10063

Test Plan: CI

Reviewed By: ajkr

Differential Revision: D36711727

Pulled By: jay-zhuang

fbshipit-source-id: 600f82a6d32108f52fbe5572fcc7497607b7fe98
  • Loading branch information
jay-zhuang authored and facebook-github-bot committed May 30, 2022
1 parent 460b44c commit 0adac6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utilities/transactions/transaction_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0adac6f

Please sign in to comment.