From 15f55e5e06feb931fe951a4a57092859d2a6d72e Mon Sep 17 00:00:00 2001 From: Sagar Vemuri Date: Fri, 2 Mar 2018 16:19:56 -0800 Subject: [PATCH] Fix TSAN timeout in MergeOperatorPinningTest.Randomized/x test Summary: [FB - Internal] MergeOperatorPinningTest.Randomized/x tests are frequently failing with timeouts when run with tsan, as they are exceeding 10 minute limit for tests. The tests are in turn getting disabled due to frequent failures. I halved the number of rounds to make the test complete sooner. This reduces the number of testing iterations a little, but it still is much better than totally letting the test be disabled. Closes https://github.com/facebook/rocksdb/pull/3523 Differential Revision: D7031498 Pulled By: sagar0 fbshipit-source-id: 9a694f2176b235259920a42bf24bca5346f7cff1 --- db/db_merge_operator_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db_merge_operator_test.cc b/db/db_merge_operator_test.cc index e109422fa..7b9808d66 100644 --- a/db/db_merge_operator_test.cc +++ b/db/db_merge_operator_test.cc @@ -284,7 +284,7 @@ TEST_P(MergeOperatorPinningTest, Randomized) { Random rnd(301); std::map true_data; - const int kTotalMerges = 10000; + const int kTotalMerges = 5000; // Every key gets ~10 operands const int kKeyRange = kTotalMerges / 10; const int kOperandSize = 20;