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/07 12:24:21 UTC

[jira] [Commented] (ZOOKEEPER-2559) Failed to delete the set quota for ephemeral node when the node is deleted because of client session closed

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-2559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15470461#comment-15470461 ] 

Rakesh Kumar Singh commented on ZOOKEEPER-2559:
-----------------------------------------------

Even for normal node also when the node is deleted the set quota remained as it is and not getting deleted.

> Failed to delete the set quota for ephemeral node when the node is deleted because of client session closed
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-2559
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2559
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 3.5.1, 3.5.2
>            Reporter: Rakesh Kumar Singh
>
> Failed to delete the set quota for ephemeral node when the node is deleted because of client session closed
> [zk: localhost:2181(CONNECTED) 0] create -e /e_test hello
> Created /e_test
> [zk: localhost:2181(CONNECTED) 1] setquota -n 10 /e_test
> [zk: localhost:2181(CONNECTED) 2] listquota /e_test
> absolute path is /zookeeper/quota/e_test/zookeeper_limits
> Output quota for /e_test count=10,bytes=-1
> Output stat for /e_test count=1,bytes=5
> Now close the client connection and so the ephemeral node gets deleted. But the corresponding quota is not getting deleted as below:-
> [zk: localhost:2181(CONNECTED) 0] ls /
> [test, test1, test3, zookeeper]
> [zk: localhost:2181(CONNECTED) 1] listquota /e_test
> absolute path is /zookeeper/quota/e_test/zookeeper_limits
> Output quota for /e_test count=10,bytes=-1
> Output stat for /e_test count=0,bytes=0
> [zk: localhost:2181(CONNECTED) 2] 
> and so now again create the ephemeral node with same node and try to set the quota, it will fail.
> [zk: localhost:2181(CONNECTED) 2] create -e /e_test hello
> Created /e_test
> [zk: localhost:2181(CONNECTED) 3] setquota -n 10 /e_test
> Command failed: java.lang.IllegalArgumentException: /e_test has a parent /zookeeper/quota/e_test which has a quota
> [zk: localhost:2181(CONNECTED) 4] 



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