Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-258

docs incorrectly state max client timeout as 60 seconds (it's based on server ticktime)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 3.0.1
    • Fix Version/s: 3.1.0
    • Component/s: documentation
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The docs incorrectly state the max client timeout as 60 seconds.
      http://hadoop.apache.org/zookeeper/docs/r3.0.1/zookeeperProgrammers.html#ch_zkSessions

      the current server code has the following logic:
      if (sessionTimeout < zk.tickTime * 2)

      { sessionTimeout = zk.tickTime * 2; }

      if (sessionTimeout > zk.tickTime * 20)

      { sessionTimeout = zk.tickTime * 20; }

      So really the docs should say max is 20*tickTime

        Attachments

        1. ZOOKEEPER-258.patch
          4 kB
          Patrick D. Hunt

          Activity

            People

            • Assignee:
              phunt Patrick D. Hunt
              Reporter:
              phunt Patrick D. Hunt
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: