Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2559

the quota should be deleted when its parasitic path doesn't exist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.5.1, 3.5.2
    • None
    • server

    Description

      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]

      Attachments

        Issue Links

          Activity

            People

              rakeshsingh Rakesh Kumar Singh
              rakeshsingh Rakesh Kumar Singh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m