HBASE-12450 Unbalance chaos monkey might kill all region servers without starting them back (Virag Kothari)
This commit is contained in:
parent
5ffa457940
commit
3b8c0769cc
|
@ -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");
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue