ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-1307

zkCli.sh is exiting when an Invalid ACL exception is thrown from setACL command through client

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.4, 3.5.0
    • Component/s: java client
    • Labels:
    • Environment:

      zkCli.sh

    • Hadoop Flags:
      Reviewed

      Description

      use consoleClient (zkCli.sh) and issue setAcl /temp abc
      [zk: XX.XX.XX.XX:XXXX(CONNECTED) 17] setAcl /temp abc
      abc does not have the form scheme:id:perm
      Exception in thread "main" org.apache.zookeeper.KeeperException$InvalidACLException: KeeperErrorCode = InvalidACL
      at org.apache.zookeeper.ZooKeeper.setACL(ZooKeeper.java:1172)
      at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:717)
      at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:582)
      at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:354)
      at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:312)
      at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:271)
      linux-xxx:/zookeeper1/bin #

      if any InvalidACLException is thrown then client is exiting.
      client should be able to handle this kind of issues

        Issue Links

          Activity

          amith created issue -
          kavita sharma made changes -
          Field Original Value New Value
          Assignee kavita sharma [ kavita sharma ]
          Patrick Hunt made changes -
          Fix Version/s 3.5.0 [ 12316644 ]
          Fix Version/s 3.4.1 [ 12318650 ]
          Patrick Hunt made changes -
          Labels newbie
          Mahadev konar made changes -
          Fix Version/s 3.4.1 [ 12318650 ]
          Fix Version/s 3.3.5 [ 12319081 ]
          kavita sharma made changes -
          Attachment ZOOKEEPER-1307.patch [ 12509891 ]
          kavita sharma made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Hartmut Lang made changes -
          Link This issue is superceded by ZOOKEEPER-271 [ ZOOKEEPER-271 ]
          Patrick Hunt made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags Reviewed [ 10343 ]
          Fix Version/s 3.4.4 [ 12319841 ]
          Resolution Fixed [ 1 ]
          Eugene Koontz made changes -
          Link This issue is related to ZOOKEEPER-1391 [ ZOOKEEPER-1391 ]

            People

            • Assignee:
              kavita sharma
              Reporter:
              amith
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development