hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [13/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:21 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/2a12bac8
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/2a12bac8
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/2a12bac8

Branch: refs/heads/0.98
Commit: 2a12bac8934f3faabc2a25441883c9829b9e157d
Parents: c526bf9
Author: Andrew Purtell <apurtell@apache.org>
Authored: Fri Nov 7 17:22:58 2014 -0800
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Fri Nov 7 17:25:37 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/2a12bac8/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 eeecda2..0410b3f 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
@@ -147,7 +147,12 @@ public class Action {
 
   protected void forceBalancer() throws Exception {
     HBaseAdmin 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/2a12bac8/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 b6c1f2e..813d275 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
@@ -42,6 +42,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);
     } catch (IOException e) {


Mime
View raw message