Repository: hbase
Updated Branches:
  refs/heads/hbase-11339 836021df2 -> a7f8035ec


HBASE-12080 Shorten the run time of integration test by default when using mvn 
failsafe:integration-test (Jingcheng Du)


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

Branch: refs/heads/hbase-11339
Commit: a7f8035ec5ffaa204a47e157cee4ba826eb4afdf
Parents: 836021d
Author: Jonathan M Hsieh <[email protected]>
Authored: Wed Sep 24 06:40:04 2014 -0700
Committer: Jonathan M Hsieh <[email protected]>
Committed: Wed Sep 24 06:40:04 2014 -0700

----------------------------------------------------------------------
 .../hadoop/hbase/IntegrationTestIngestWithMOB.java     | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/a7f8035e/hbase-it/src/test/java/org/apache/hadoop/hbase/IntegrationTestIngestWithMOB.java
----------------------------------------------------------------------
diff --git 
a/hbase-it/src/test/java/org/apache/hadoop/hbase/IntegrationTestIngestWithMOB.java
 
b/hbase-it/src/test/java/org/apache/hadoop/hbase/IntegrationTestIngestWithMOB.java
index b021cc4..95470b5 100644
--- 
a/hbase-it/src/test/java/org/apache/hadoop/hbase/IntegrationTestIngestWithMOB.java
+++ 
b/hbase-it/src/test/java/org/apache/hadoop/hbase/IntegrationTestIngestWithMOB.java
@@ -30,6 +30,7 @@ import org.apache.hadoop.hbase.util.Bytes;
 import org.apache.hadoop.hbase.util.LoadTestDataGeneratorWithMOB;
 import org.apache.hadoop.hbase.util.LoadTestTool;
 import org.apache.hadoop.util.ToolRunner;
+import org.junit.Test;
 import org.junit.experimental.categories.Category;
 
 /**
@@ -43,9 +44,10 @@ public class IntegrationTestIngestWithMOB extends 
IntegrationTestIngest {
   public static final String THRESHOLD = "threshold";
   public static final String MIN_MOB_DATA_SIZE = "minMobDataSize";
   public static final String MAX_MOB_DATA_SIZE = "maxMobDataSize";
-  private int threshold = 100 * 1024; //100KB
-  private int minMobDataSize = threshold * 4 / 5; //80KB
-  private int maxMobDataSize = threshold * 50; // 5MB
+  private int threshold = 1024; // 1KB
+  private int minMobDataSize = 512; // 512B
+  private int maxMobDataSize = threshold * 5; // 5KB
+  private static final long JUNIT_RUN_TIME = 2 * 60 * 1000; // 2 minutes
 
   //similar to LOAD_TEST_TOOL_INIT_ARGS except OPT_IN_MEMORY is removed
   protected String[] LOAD_TEST_TOOL_MOB_INIT_ARGS = {
@@ -100,6 +102,11 @@ public class IntegrationTestIngestWithMOB extends 
IntegrationTestIngest {
     }
   }
 
+  @Test
+  public void testIngest() throws Exception {
+    runIngestTest(JUNIT_RUN_TIME, 100, 10, 1024, 10, 20);
+  };
+
   @Override
   protected void initTable() throws IOException {
     super.initTable();

Reply via email to