HBASE-12450 Unbalance chaos monkey might kill all region servers without starting them back (Virag Kothari)

This commit is contained in:
Andrew Purtell 2014-11-07 17:22:31 -08:00
parent 5ffa457940
commit 3b8c0769cc
2 changed files with 7 additions and 1 deletions

View File

@ -163,7 +163,12 @@ public class Action {
protected void forceBalancer() throws Exception {
Admin admin = this.context.getHBaseIntegrationTestingUtility().getHBaseAdmin();
boolean result = admin.balancer();
boolean result = false;
try {
result = admin.balancer();
} catch (Exception e) {
LOG.warn("Got exception while doing balance ", e);
}
if (!result) {
LOG.error("Balancer didn't succeed");
}

View File

@ -43,6 +43,7 @@ public class RestartRsHoldingTableAction extends RestartActionBaseAction {
public void perform() throws Exception {
HTable table = null;
try {
LOG.info("Performing action: Restart random RS holding table " + this.tableName);
Configuration conf = context.getHBaseIntegrationTestingUtility().getConfiguration();
table = new HTable(conf, TableName.valueOf(tableName));
} catch (IOException e) {