kudu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject [3/3] kudu git commit: row_operations-test: reduce iterations in ASAN build
Date Tue, 20 Sep 2016 03:51:32 GMT
row_operations-test: reduce iterations in ASAN build

This seems to be flaky with timeouts in ASAN. Reducing the number of
iterations for slow ASAN tests.

Change-Id: I6378acb0a53a1401d1341f13350cc1255eea404f
Reviewed-on: http://gerrit.cloudera.org:8080/4449
Reviewed-by: David Ribeiro Alves <dralves@apache.org>
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/b1ef84e7
Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/b1ef84e7
Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/b1ef84e7

Branch: refs/heads/master
Commit: b1ef84e7bfda8d2c62876bab45c77abc053a8d29
Parents: c9b1fef
Author: Todd Lipcon <todd@apache.org>
Authored: Mon Sep 19 14:36:28 2016 -0700
Committer: Todd Lipcon <todd@apache.org>
Committed: Tue Sep 20 02:01:20 2016 +0000

----------------------------------------------------------------------
 src/kudu/common/row_operations-test.cc | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kudu/blob/b1ef84e7/src/kudu/common/row_operations-test.cc
----------------------------------------------------------------------
diff --git a/src/kudu/common/row_operations-test.cc b/src/kudu/common/row_operations-test.cc
index 3c7ce6a..c3fd37a 100644
--- a/src/kudu/common/row_operations-test.cc
+++ b/src/kudu/common/row_operations-test.cc
@@ -241,7 +241,13 @@ void GlogFailure() {
 // random mutations like adding an extra column, removing a column, changing
 // types, and changing nullability.
 TEST_F(RowOperationsTest, SchemaFuzz) {
-  const int n_iters = AllowSlowTests() ? 10000 : 10;
+#ifdef ADDRESS_SANITIZER
+  // Prevent timeouts in ASAN build.
+  const int kSlowTestIters = 1000;
+#else
+  const int kSlowTestIters = 10000;
+#endif
+  const int n_iters = AllowSlowTests() ? kSlowTestIters : 10;
   for (int i = 0; i < n_iters; i++) {
     // Generate a random client and server schema pair.
     Schema client_schema = GenRandomSchema(false);


Mime
View raw message