Author: stack
Date: Sun Nov 22 23:39:18 2009
New Revision: 883190

URL: http://svn.apache.org/viewvc?rev=883190&view=rev
Log:
HBASE-1997 zk tick time bounds maximum zk session time

Modified:
    hadoop/hbase/trunk/CHANGES.txt
    hadoop/hbase/trunk/conf/hbase-default.xml

Modified: hadoop/hbase/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=883190&r1=883189&r2=883190&view=diff
==============================================================================
--- hadoop/hbase/trunk/CHANGES.txt (original)
+++ hadoop/hbase/trunk/CHANGES.txt Sun Nov 22 23:39:18 2009
@@ -116,6 +116,7 @@
                Purtell)
    HBASE-1999  When HTable goes away, close zk session in shutdown hook or
                something...
+   HBASE-1997  zk tick time bounds maximum zk session time
 
   IMPROVEMENTS
    HBASE-1760  Cleanup TODOs in HTable

Modified: hadoop/hbase/trunk/conf/hbase-default.xml
URL: 
http://svn.apache.org/viewvc/hadoop/hbase/trunk/conf/hbase-default.xml?rev=883190&r1=883189&r2=883190&view=diff
==============================================================================
--- hadoop/hbase/trunk/conf/hbase-default.xml (original)
+++ hadoop/hbase/trunk/conf/hbase-default.xml Sun Nov 22 23:39:18 2009
@@ -386,10 +386,15 @@
   <property>
     <name>zookeeper.session.timeout</name>
     <value>60000</value>
-    <description>ZooKeeper session timeout. This option is not used by HBase
-      directly, it is for the internals of ZooKeeper. HBase merely passes it in
-      whenever a connection is established to ZooKeeper. It is used by 
ZooKeeper
-      for hearbeats. In milliseconds.
+    <description>ZooKeeper session timeout.
+      HBase passes this to the zk quorum as suggested maximum time for a
+      session.  See 
http://hadoop.apache.org/zookeeper/docs/current/zookeeperProgrammers.html#ch_zkSessions
+      "The client sends a requested timeout, the server responds with the
+      timeout that it can give the client. The current implementation
+      requires that the timeout be a minimum of 2 times the tickTime
+      (as set in the server configuration) and a maximum of 20 times
+      the tickTime." Set the zk ticktime with 
hbase.zookeeper.property.tickTime.
+      In milliseconds.
     </description>
   </property>
   <property>
@@ -472,9 +477,10 @@
   -->
   <property>
     <name>hbase.zookeeper.property.tickTime</name>
-    <value>2000</value>
+    <value>3000</value>
     <description>Property from ZooKeeper's config zoo.cfg.
-    The number of milliseconds of each tick.
+    The number of milliseconds of each tick.  See
+    zookeeper.session.timeout description.
     </description>
   </property>
   <property>


Reply via email to