kudu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject [2/2] kudu git commit: client-test: speed up a test case under TSAN
Date Wed, 14 Sep 2016 20:00:05 GMT
client-test: speed up a test case under TSAN

This test case was taking several minutes under TSAN to insert 100k
rows. This just drops the row count to 10k for TSAN.

Change-Id: Ie42f9e6b50b6019444cf4d7131e935c1bb35cd8e
Reviewed-on: http://gerrit.cloudera.org:8080/4416
Reviewed-by: Alexey Serbin <aserbin@cloudera.com>
Tested-by: Kudu Jenkins


Project: http://git-wip-us.apache.org/repos/asf/kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/kudu/commit/9a12926f
Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/9a12926f
Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/9a12926f

Branch: refs/heads/master
Commit: 9a12926f8cd3ef1639ec3952a6c1ac695576022d
Parents: f9dcf6b
Author: Todd Lipcon <todd@apache.org>
Authored: Wed Sep 14 10:02:46 2016 -0700
Committer: Todd Lipcon <todd@apache.org>
Committed: Wed Sep 14 19:59:46 2016 +0000

----------------------------------------------------------------------
 src/kudu/client/client-test.cc | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kudu/blob/9a12926f/src/kudu/client/client-test.cc
----------------------------------------------------------------------
diff --git a/src/kudu/client/client-test.cc b/src/kudu/client/client-test.cc
index 37a9bac..54e8c9e 100644
--- a/src/kudu/client/client-test.cc
+++ b/src/kudu/client/client-test.cc
@@ -3639,7 +3639,11 @@ TEST_F(ClientTest, TestClonePredicates) {
 // Test that scanners will retry after receiving ERROR_SERVER_TOO_BUSY from an
 // overloaded tablet server. Regression test for KUDU-1079.
 TEST_F(ClientTest, TestServerTooBusyRetry) {
+#ifdef THREAD_SANITIZER
+  const int kNumRows = 10000;
+#else
   const int kNumRows = 100000;
+#endif
   NO_FATALS(InsertTestRows(client_table_.get(), kNumRows));
 
   // Introduce latency in each scan to increase the likelihood of


Mime
View raw message