You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by te...@apache.org on 2015/10/12 23:48:32 UTC

hbase git commit: HBASE-14592 BatchRestartRsAction always restarts 0 RS when running SlowDeterministicMonkey (Yu Li)

Repository: hbase
Updated Branches:
  refs/heads/master df9ff9f1e -> bfcec29dd


HBASE-14592 BatchRestartRsAction always restarts 0 RS when running SlowDeterministicMonkey (Yu Li)


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

Branch: refs/heads/master
Commit: bfcec29dd183b0e59a17ad93037af5916300e5d6
Parents: df9ff9f
Author: tedyu <yu...@gmail.com>
Authored: Mon Oct 12 14:48:27 2015 -0700
Committer: tedyu <yu...@gmail.com>
Committed: Mon Oct 12 14:48:27 2015 -0700

----------------------------------------------------------------------
 .../hbase/chaos/factories/SlowDeterministicMonkeyFactory.java     | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/bfcec29d/hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/factories/SlowDeterministicMonkeyFactory.java
----------------------------------------------------------------------
diff --git a/hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/factories/SlowDeterministicMonkeyFactory.java b/hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/factories/SlowDeterministicMonkeyFactory.java
index 7aa4a07..093df2a 100644
--- a/hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/factories/SlowDeterministicMonkeyFactory.java
+++ b/hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/factories/SlowDeterministicMonkeyFactory.java
@@ -134,6 +134,9 @@ public class SlowDeterministicMonkeyFactory extends MonkeyFactory {
       batchRestartRSSleepTime = Long.parseLong(this.properties.getProperty(
         MonkeyConstants.BATCH_RESTART_RS_SLEEP_TIME,
         MonkeyConstants.DEFAULT_BATCH_RESTART_RS_SLEEP_TIME + ""));
+      batchRestartRSRatio = Float.parseFloat(this.properties.getProperty(
+        MonkeyConstants.BATCH_RESTART_RS_RATIO,
+        MonkeyConstants.DEFAULT_BATCH_RESTART_RS_RATIO + ""));
       restartActiveMasterSleepTime = Long.parseLong(this.properties.getProperty(
         MonkeyConstants.RESTART_ACTIVE_MASTER_SLEEP_TIME,
         MonkeyConstants.DEFAULT_RESTART_ACTIVE_MASTER_SLEEP_TIME + ""));