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

API should sanity check sessionTimeout argument

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 3.2.2, 3.3.0, 3.3.1, 3.4.6, 3.5.0
    • None
    • c client, java client
    • None
    • 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.

      Attachments

        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
        4. ZOOKEEPER-776.patch
          6 kB
          Raúl Gutiérrez Segalés

        Issue Links

          Activity

            People

              rgs Raúl Gutiérrez Segalés
              ghaskins Gregory Haskins
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: