hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [11/13] hbase git commit: HBASE-12450 Unbalance chaos monkey might kill all region servers without starting them back (Virag Kothari)
Date Sat, 08 Nov 2014 02:35:19 GMT
HBASE-12450 Unbalance chaos monkey might kill all region servers without starting them back
(Virag Kothari)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/3b8c0769
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/3b8c0769
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/3b8c0769

Branch: refs/heads/master
Commit: 3b8c0769ccb63633d8baa0d402bea7cbfaf94e7f
Parents: 5ffa457
Author: Andrew Purtell <apurtell@apache.org>
Authored: Fri Nov 7 17:22:31 2014 -0800
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Fri Nov 7 17:24:46 2014 -0800

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/chaos/actions/Action.java    | 7 ++++++-
 .../hbase/chaos/actions/RestartRsHoldingTableAction.java      | 1 +
 2 files changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/3b8c0769/hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/actions/Action.java
----------------------------------------------------------------------
diff --git a/hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/actions/Action.java b/hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/actions/Action.java
index c01ce0f..f54f7dc 100644
--- a/hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/actions/Action.java
+++ b/hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/actions/Action.java
@@ -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");
     }

http://git-wip-us.apache.org/repos/asf/hbase/blob/3b8c0769/hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/actions/RestartRsHoldingTableAction.java
----------------------------------------------------------------------
diff --git a/hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/actions/RestartRsHoldingTableAction.java
b/hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/actions/RestartRsHoldingTableAction.java
index ffeab0e..b1ea8e5 100644
--- a/hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/actions/RestartRsHoldingTableAction.java
+++ b/hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/actions/RestartRsHoldingTableAction.java
@@ -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) {


Mime
View raw message