hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bus...@apache.org
Subject hbase git commit: Making {max, min}SessionTimeout configurable for MiniZooKeeperCluster
Date Wed, 30 Aug 2017 21:13:23 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 746597306 -> bcefdf7d1


Making {max,min}SessionTimeout configurable for MiniZooKeeperCluster

Signed-off-by: tedyu <yuzhihong@gmail.com>
Signed-off-by: Sean Busbey <busbey@apache.org>


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

Branch: refs/heads/master
Commit: bcefdf7d186584912b28de0394f2faf56cb0465b
Parents: 7465973
Author: Cesar Delgado <cdelgado@apple.com>
Authored: Wed Aug 23 15:37:30 2017 -0700
Committer: Sean Busbey <busbey@apache.org>
Committed: Wed Aug 30 14:13:09 2017 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java   | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/bcefdf7d/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
index 8432a1b..2cc89f0 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
@@ -225,6 +225,9 @@ public class MiniZooKeeperCluster {
       }
 
       ZooKeeperServer server = new ZooKeeperServer(dir, dir, tickTimeToUse);
+      // Setting {min,max}SessionTimeout defaults to be the same as in Zookeeper
+      server.setMinSessionTimeout(configuration.getInt("hbase.zookeeper.property.minSessionTimeout",
-1));
+      server.setMaxSessionTimeout(configuration.getInt("hbase.zookeeper.property.maxSessionTimeout",
-1));
       NIOServerCnxnFactory standaloneServerFactory;
       while (true) {
         try {


Mime
View raw message