HBASE-12450 Unbalance chaos monkey might kill all region servers without starting them back (Virag Kothari)
This commit is contained in:
parent
a8734c3a4a
commit
0145650cb0
|
@ -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