Deflake TransactionStressTest.ExpiredTransactionDataRace1 (#8258)

Summary:
We saw the `Commit()` fail with "Operation expired" so apparently the
expiration time is too short. Increased the magnitude of the times in
this test to make flakiness less likely.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/8258

Reviewed By: jay-zhuang

Differential Revision: D28177033

Pulled By: ajkr

fbshipit-source-id: 0357acee6cc14c104b6ccd39231a683a606ab130
main
Andrew Kryczka 4 years ago committed by Facebook GitHub Bot
parent a79b46c503
commit d76c46e6a0
  1. 4
      utilities/transactions/transaction_test.cc

@ -5321,7 +5321,7 @@ TEST_P(TransactionStressTest, ExpiredTransactionDataRace1) {
// Force txn1 to expire
/* sleep override */
std::this_thread::sleep_for(std::chrono::milliseconds(150));
std::this_thread::sleep_for(std::chrono::milliseconds(1500));
Transaction* txn2 = db->BeginTransaction(write_options, txn_options);
Status s;
@ -5337,7 +5337,7 @@ TEST_P(TransactionStressTest, ExpiredTransactionDataRace1) {
WriteOptions write_options;
TransactionOptions txn_options;
txn_options.expiration = 100;
txn_options.expiration = 1000; // 1 second
Transaction* txn1 = db->BeginTransaction(write_options, txn_options);
Status s;

Loading…
Cancel
Save