HBASE-15062 IntegrationTestMTTR conditionally run some tests.
Signed-off-by: Michael Stack <stack@apache.org>
This commit is contained in:
parent
f1b97a6aa0
commit
ba54af3318
|
@ -19,6 +19,7 @@
|
|||
package org.apache.hadoop.hbase.mttr;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assume.assumeFalse;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
|
@ -267,6 +268,15 @@ public class IntegrationTestMTTR {
|
|||
loadTool = null;
|
||||
}
|
||||
|
||||
private static boolean tablesOnMaster() {
|
||||
boolean ret = true;
|
||||
String value = util.getConfiguration().get("hbase.balancer.tablesOnMaster");
|
||||
if( value != null && value.equalsIgnoreCase("none")) {
|
||||
ret = false;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testRestartRsHoldingTable() throws Exception {
|
||||
run(new ActionCallable(restartRSAction), "RestartRsHoldingTableAction");
|
||||
|
@ -274,6 +284,7 @@ public class IntegrationTestMTTR {
|
|||
|
||||
@Test
|
||||
public void testKillRsHoldingMeta() throws Exception {
|
||||
assumeFalse(tablesOnMaster());
|
||||
run(new ActionCallable(restartMetaAction), "KillRsHoldingMeta");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue