zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ZOOKEEPER-2559) Failed to delete the set quota for ephemeral node when the node is deleted because of client session closed
Date Fri, 10 May 2019 07:10:00 GMT

     [ https://issues.apache.org/jira/browse/ZOOKEEPER-2559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

ASF GitHub Bot updated ZOOKEEPER-2559:
--------------------------------------
    Labels: pull-request-available  (was: )

> 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
>            Assignee: Rakesh Kumar Singh
>            Priority: Major
>              Labels: pull-request-available
>
> 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
(v7.6.3#76005)

Mime
View raw message