hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bus...@apache.org
Subject hbase git commit: HBASE-18675 Making {max, min}SessionTimeout configurable for MiniZooKeeperCluster
Date Wed, 30 Aug 2017 21:45:25 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 aec4bf6ba -> 8178305d4


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

Branch: refs/heads/branch-1
Commit: 8178305d4ee050182655d73bea26a60e2d641a53
Parents: aec4bf6
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:32:37 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/8178305d/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 ab74318..6cd5a28 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
@@ -227,6 +227,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