HBASE-19220 Async tests time out talking to zk; 'clusterid came back null'
This commit is contained in:
parent
fd86de98e1
commit
252ab30820
|
@ -68,7 +68,7 @@ class ZKAsyncRegistry implements AsyncRegistry {
|
||||||
ZKAsyncRegistry(Configuration conf) {
|
ZKAsyncRegistry(Configuration conf) {
|
||||||
this.znodePaths = new ZNodePaths(conf);
|
this.znodePaths = new ZNodePaths(conf);
|
||||||
int zkSessionTimeout = conf.getInt(ZK_SESSION_TIMEOUT, DEFAULT_ZK_SESSION_TIMEOUT);
|
int zkSessionTimeout = conf.getInt(ZK_SESSION_TIMEOUT, DEFAULT_ZK_SESSION_TIMEOUT);
|
||||||
int zkRetry = conf.getInt("zookeeper.recovery.retry", 3);
|
int zkRetry = conf.getInt("zookeeper.recovery.retry", 30);
|
||||||
int zkRetryIntervalMs = conf.getInt("zookeeper.recovery.retry.intervalmill", 1000);
|
int zkRetryIntervalMs = conf.getInt("zookeeper.recovery.retry.intervalmill", 1000);
|
||||||
this.zk = CuratorFrameworkFactory.builder()
|
this.zk = CuratorFrameworkFactory.builder()
|
||||||
.connectString(ZKConfig.getZKQuorumServersString(conf)).sessionTimeoutMs(zkSessionTimeout)
|
.connectString(ZKConfig.getZKQuorumServersString(conf)).sessionTimeoutMs(zkSessionTimeout)
|
||||||
|
|
Loading…
Reference in New Issue