ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-776

API should sanity check sessionTimeout argument

    Details

    • Type: Improvement Improvement
    • Status: In Progress
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.2.2, 3.3.0, 3.3.1
    • Fix Version/s: 3.5.2, 3.6.0
    • Component/s: c client, java client
    • Labels:
      None
    • Environment:

      OSX 10.6.3, JVM 1.6.0-20

      Description

      passing in a "0" sessionTimeout to ZooKeeper() constructor leads to errors in subsequent operations. It would be ideal to capture this configuration error at the source by throwing something like an IllegalArgument exception when the bogus sessionTimeout is specified, instead of later when it is utilized.

      1. zookeeper-776-fix.patch
        1 kB
        Gregory Haskins
      2. zookeeper-776-fix.patch
        3 kB
        Gregory Haskins
      3. zookeeper-776-fix.patch
        2 kB
        Gregory Haskins

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Bill Havanki
              Reporter:
              Gregory Haskins
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:

                Development