ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-777

setting acl on a non existant node should return no node error

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 3.3.0, 3.3.1
    • Fix Version/s: None
    • Component/s: server
    • Labels:
      None

      Description

      currently it just returns successfully, but the acl can't be retrieved, and if any value is being stored, its overwritten when the node is created.

      1. test.py
        0.7 kB
        Andrei Savu

        Activity

        Hide
        Patrick Hunt added a comment -

        Nice one! Fixing this would be a great opportunity for someone interested to learn more about server side code.

        Show
        Patrick Hunt added a comment - Nice one! Fixing this would be a great opportunity for someone interested to learn more about server side code.
        Hide
        Andrei Savu added a comment -

        Unable to replicate this bug. I've tested using the CLI:

        [zk: (CONNECTED) 2] setAcl /dummy world:anyone:cdrwa
        Node does not exist: /dummy

        I have also tested this scenario using the attached python script:

        Connecting to localhost:2181 –
        Setting ACL on /dummy
        Exception: no node

        Am I missing something?

        Show
        Andrei Savu added a comment - Unable to replicate this bug. I've tested using the CLI: [zk: (CONNECTED) 2] setAcl /dummy world:anyone:cdrwa Node does not exist: /dummy I have also tested this scenario using the attached python script: Connecting to localhost:2181 – Setting ACL on /dummy Exception: no node Am I missing something?
        Hide
        Kapil Thangavelu added a comment -

        i think the problem was in a the client library on top of zookeeper, i tried debugging the server code but its doing everything correct and raising the exception and no node error code. the python script savu attached works as expected, i'm closing this out as invalid.

        Show
        Kapil Thangavelu added a comment - i think the problem was in a the client library on top of zookeeper, i tried debugging the server code but its doing everything correct and raising the exception and no node error code. the python script savu attached works as expected, i'm closing this out as invalid.
        Hide
        Patrick Hunt added a comment -

        According to the comment this should have been closed out as invalid. Marking as such.

        Show
        Patrick Hunt added a comment - According to the comment this should have been closed out as invalid. Marking as such.

          People

          • Assignee:
            Unassigned
            Reporter:
            Kapil Thangavelu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development