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

Client side 'PathValidation' is missing for the multi-transaction api.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.4.6, 3.5.0
    • java client
    • None
    • Reviewed

    Description

      Multi ops: Op.create(path,..), Op.delete(path, ..), Op.setData(path, ..),
      Op.check(path, ...) apis are not performing the client side path validation and the call will go to the server side and is throwing exception back to the client.

      It would be good to provide ZooKeeper client side path validation for the multi transaction apis. Presently its getting err codes from the server, which is also not properly conveying the cause.

      For example: When specified invalid znode path in Op.create, it giving the following exception. This will not be useful to know the actual cause.

      org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode
      	at org.apache.zookeeper.KeeperException.create(KeeperException.java:115)
      	at org.apache.zookeeper.ZooKeeper.multiInternal(ZooKeeper.java:1174)
      	at org.apache.zookeeper.ZooKeeper.multi(ZooKeeper.java:1115)
      

      Attachments

        1. 0001-ZOOKEEPER-1388-trunk-version.patch
          9 kB
          Rakesh Radhakrishnan
        2. 0002-ZOOKEEPER-1388-trunk-version.patch
          11 kB
          Rakesh Radhakrishnan
        3. ZOOKEEPER-1388_branch_3_4.patch
          7 kB
          Rakesh Radhakrishnan
        4. ZOOKEEPER-1388.patch
          12 kB
          Rakesh Radhakrishnan
        5. ZOOKEEPER-1388.patch
          11 kB
          Rakesh Radhakrishnan
        6. ZOOKEEPER-1388.patch
          11 kB
          Rakesh Radhakrishnan

        Activity

          People

            rakeshr Rakesh Radhakrishnan
            rakeshr Rakesh Radhakrishnan
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: