Allow to skip the scan part of full_stack-insert-scan-test

This test is good to microbenchmark/run perf on writes but
the scan part of the test introduces noise in this case.

This patch adds a flag to allow to skip the scan part of
the test.

Change-Id: I93e4c0dd5637bb8992f5f2fd51d4f3811e468974
Reviewed-on: http://gerrit.cloudera.org:8080/5233
Tested-by: Kudu Jenkins
Reviewed-by: Alexey Serbin <[email protected]>
Reviewed-by: Todd Lipcon <[email protected]>


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

Branch: refs/heads/master
Commit: c7b03722f6d11526905dc219c33e4f05645dd470
Parents: 1f16eba
Author: David Alves <[email protected]>
Authored: Sat Nov 26 17:49:51 2016 -0800
Committer: David Ribeiro Alves <[email protected]>
Committed: Mon Nov 28 19:18:34 2016 +0000

----------------------------------------------------------------------
 src/kudu/integration-tests/full_stack-insert-scan-test.cc | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kudu/blob/c7b03722/src/kudu/integration-tests/full_stack-insert-scan-test.cc
----------------------------------------------------------------------
diff --git a/src/kudu/integration-tests/full_stack-insert-scan-test.cc 
b/src/kudu/integration-tests/full_stack-insert-scan-test.cc
index 555e5b7..17dd953 100644
--- a/src/kudu/integration-tests/full_stack-insert-scan-test.cc
+++ b/src/kudu/integration-tests/full_stack-insert-scan-test.cc
@@ -56,6 +56,8 @@
 #include "kudu/util/random.h"
 #include "kudu/util/random_util.h"
 
+DEFINE_bool(skip_scans, false, "Whether to skip the scan part of the test.");
+
 // Test size parameters
 DEFINE_int32(concurrent_inserts, -1, "Number of inserting clients to launch");
 DEFINE_int32(inserts_per_client, -1,
@@ -304,6 +306,10 @@ void FullStackInsertScanTest::DoConcurrentClientInserts() {
 }
 
 void FullStackInsertScanTest::DoTestScans() {
+  if (FLAGS_skip_scans) {
+    LOG(INFO) << "Skipped scan part of the test.";
+    return;
+  }
   LOG(INFO) << "Doing test scans on table of " << kNumRows << " rows.";
 
   gscoped_ptr<Subprocess> stat = MakePerfStat();

Reply via email to