You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@twill.apache.org by ch...@apache.org on 2015/05/06 05:55:28 UTC
[4/4] incubator-twill git commit: Increase the default zookeeper
session time.
Increase the default zookeeper session time.
Project: http://git-wip-us.apache.org/repos/asf/incubator-twill/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-twill/commit/d18c3a87
Tree: http://git-wip-us.apache.org/repos/asf/incubator-twill/tree/d18c3a87
Diff: http://git-wip-us.apache.org/repos/asf/incubator-twill/diff/d18c3a87
Branch: refs/heads/feature/TWILL-69
Commit: d18c3a87f6449ee947581162ea8fd748a3b5310c
Parents: e13a1d3
Author: Terence Yim <ch...@apache.org>
Authored: Tue May 5 20:55:16 2015 -0700
Committer: Terence Yim <ch...@apache.org>
Committed: Tue May 5 20:55:16 2015 -0700
----------------------------------------------------------------------
.../main/java/org/apache/twill/zookeeper/ZKClientService.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-twill/blob/d18c3a87/twill-zookeeper/src/main/java/org/apache/twill/zookeeper/ZKClientService.java
----------------------------------------------------------------------
diff --git a/twill-zookeeper/src/main/java/org/apache/twill/zookeeper/ZKClientService.java b/twill-zookeeper/src/main/java/org/apache/twill/zookeeper/ZKClientService.java
index 33c23aa..7052044 100644
--- a/twill-zookeeper/src/main/java/org/apache/twill/zookeeper/ZKClientService.java
+++ b/twill-zookeeper/src/main/java/org/apache/twill/zookeeper/ZKClientService.java
@@ -24,6 +24,7 @@ import com.google.common.util.concurrent.Service;
import org.apache.twill.internal.zookeeper.DefaultZKClientService;
import org.apache.zookeeper.Watcher;
import org.apache.zookeeper.ZooKeeper;
+import org.apache.zookeeper.server.ZooKeeperServer;
/**
* A {@link ZKClient} that extends from {@link Service} to provide lifecycle management functions.
@@ -44,10 +45,10 @@ public interface ZKClientService extends ZKClient, Service {
* Builder for creating an implementation of {@link ZKClientService}.
* The default client timeout is 10000ms.
*/
- public static final class Builder {
+ final class Builder {
private final String connectStr;
- private int timeout = 10000;
+ private int timeout = ZooKeeperServer.DEFAULT_TICK_TIME * 20;
private Watcher connectionWatcher;
private Multimap<String, byte[]> auths = ArrayListMultimap.create();