hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1491573 - /hbase/trunk/hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestBigLinkedListWithChaosMonkey.java
Date Mon, 10 Jun 2013 19:32:13 GMT
Author: stack
Date: Mon Jun 10 19:32:13 2013
New Revision: 1491573

URL: http://svn.apache.org/r1491573
Log:
HBASE-8637 IntegrationTestBigLinkedListWithChaosMonkey uses the wrong table name

Modified:
    hbase/trunk/hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestBigLinkedListWithChaosMonkey.java

Modified: hbase/trunk/hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestBigLinkedListWithChaosMonkey.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestBigLinkedListWithChaosMonkey.java?rev=1491573&r1=1491572&r2=1491573&view=diff
==============================================================================
--- hbase/trunk/hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestBigLinkedListWithChaosMonkey.java
(original)
+++ hbase/trunk/hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestBigLinkedListWithChaosMonkey.java
Mon Jun 10 19:32:13 2013
@@ -21,6 +21,7 @@ package org.apache.hadoop.hbase.test;
 import java.io.IOException;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
+import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.hbase.IntegrationTestingUtility;
 import org.apache.hadoop.hbase.IntegrationTests;
 import org.apache.hadoop.hbase.util.ChaosMonkey;
@@ -44,8 +45,13 @@ public class IntegrationTestBigLinkedLis
 
   public IntegrationTestBigLinkedListWithChaosMonkey() {
     super();
-    TABLE_NAME_KEY = "IntegrationTestBigLinkedListWithChaosMonkey.table";
-    DEFAULT_TABLE_NAME = "IntegrationTestBigLinkedListWithChaosMonkey";
+    Configuration conf = getConf();
+    if (conf != null) {
+      conf.set(TABLE_NAME_KEY, "IntegrationTestBigLinkedListWithChaosMonkey");
+    } else {
+      this.getTestingUtil().getConfiguration()
+          .set(TABLE_NAME_KEY, "IntegrationTestBigLinkedListWithChaosMonkey");
+    }
   }
 
   @Before
@@ -90,7 +96,7 @@ public class IntegrationTestBigLinkedLis
     test.setUp();
 
     // run the test
-    int ret = ToolRunner.run(test.getConf(), test, args);
+    int ret = ToolRunner.run(test.getTestingUtil().getConfiguration(), test, args);
 
     test.tearDown();
     System.exit(ret);



Mime
View raw message