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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.3.0
    • None
    • contrib-bindings
    • 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

            Unassigned Unassigned
            jkoshy Joseph Koshy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: