HBASE-18675 Making {max,min}SessionTimeout configurable for MiniZooKeeperCluster
Signed-off-by: tedyu <yuzhihong@gmail.com> Signed-off-by: Sean Busbey <busbey@apache.org>
This commit is contained in:
parent
96de8d71fc
commit
bbc13c9a14
@ -225,6 +225,9 @@ public class MiniZooKeeperCluster {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ZooKeeperServer server = new ZooKeeperServer(dir, dir, tickTimeToUse);
|
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;
|
NIOServerCnxnFactory standaloneServerFactory;
|
||||||
while (true) {
|
while (true) {
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user