hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-14592 BatchRestartRsAction always restarts 0 RS when running SlowDeterministicMonkey (Yu Li)
Date Mon, 12 Oct 2015 21:51:19 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 b1cfe94c9 -> 411683c22


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/411683c2
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/411683c2
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/411683c2

Branch: refs/heads/branch-1
Commit: 411683c22bbd837f3febc75ec1f77055e232827c
Parents: b1cfe94
Author: tedyu <yuzhihong@gmail.com>
Authored: Mon Oct 12 14:51:18 2015 -0700
Committer: tedyu <yuzhihong@gmail.com>
Committed: Mon Oct 12 14:51:18 2015 -0700

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/411683c2/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 + ""));


Mime
View raw message