You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Rakesh Kumar Singh (JIRA)" <ji...@apache.org> on 2016/09/08 06:20:21 UTC

[jira] [Created] (ZOOKEEPER-2563) delquota -[n|b] is not deleting the set quota properly

Rakesh Kumar Singh created ZOOKEEPER-2563:
---------------------------------------------

             Summary: delquota -[n|b] is not deleting the set quota properly
                 Key: ZOOKEEPER-2563
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2563
             Project: ZooKeeper
          Issue Type: Bug
          Components: server
    Affects Versions: 3.5.1
            Reporter: Rakesh Kumar Singh


delquota -[n|b] is not deleting the set quota properly

Steps to reproduce:-
1. Start zookeeper in cluster mode (ssl)
2. create some node say /test
3. Run command as listquota says (as expected)
quota for /test does not exist
4. setquota let say
setquota -n 10 /test
5. Now try to delete this as below
delquota -n /test
6. now check the quota

[zk: localhost:2181(CONNECTED) 1] listquota /test
absolute path is /zookeeper/quota/test/zookeeper_limits
Output quota for /test count=-1,bytes=-1
Output stat for /test count=1,bytes=5

7. Here it is not deleted quota node for test
8. Now try to set some new quota
It fails as it is not deleted correctly while delete

[zk: localhost:2181(CONNECTED) 3] setquota -n 11 /test
Command failed: java.lang.IllegalArgumentException: /test has a parent /zookeeper/quota/test which has a quota




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)