From 3f89af1c39da4991ef6c544fc5e3f164a688b375 Mon Sep 17 00:00:00 2001 From: Levi Tamasi Date: Fri, 26 Jul 2019 15:48:35 -0700 Subject: [PATCH] Reduce the number of random iterations in compact_on_deletion_collector_test (#5635) Summary: This test frequently times out under TSAN; reducing the number of random iterations to make it complete faster. Pull Request resolved: https://github.com/facebook/rocksdb/pull/5635 Test Plan: buck test mode/dev-tsan internal_repo_rocksdb/repo:compact_on_deletion_collector_test Differential Revision: D16523505 Pulled By: ltamasi fbshipit-source-id: 6a69909bce9d204c891150fcb3d536547b3253d0 --- .../compact_on_deletion_collector_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/table_properties_collectors/compact_on_deletion_collector_test.cc b/utilities/table_properties_collectors/compact_on_deletion_collector_test.cc index 101aa988b..57eed1070 100644 --- a/utilities/table_properties_collectors/compact_on_deletion_collector_test.cc +++ b/utilities/table_properties_collectors/compact_on_deletion_collector_test.cc @@ -40,7 +40,7 @@ int main(int /*argc*/, char** /*argv*/) { // randomize tests rocksdb::Random rnd(301); const int kMaxTestSize = 100000l; - for (int random_test = 0; random_test < 30; random_test++) { + for (int random_test = 0; random_test < 10; random_test++) { int window_size = rnd.Uniform(kMaxTestSize) + 1; int deletion_trigger = rnd.Uniform(window_size); window_sizes.emplace_back(window_size);