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

zkPython's NodeExistsException should include information about the node that exists

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.3.0
    • Fix Version/s: 3.5.4, 3.6.0
    • Component/s: contrib-bindings
    • Labels:
      None

      Description

      Currently the code creates a zookeeper.NodeExistsException object with a string argument "node exists".

      Including the name of the node that caused the exception would be useful, in that it allows user code like the following:

      example1
      try:
        zookeeper.create(zh, n1, ...)
        zookeeper.create(zh, n2, ...)
      except zookeeper.NodeExistsException, n:
        print "Node \"%s\" exists." % n
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jkoshy Joseph Koshy
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: