[
https://issues.apache.org/jira/browse/ZOOKEEPER-4368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17410910#comment-17410910
]
Ling Mao commented on ZOOKEEPER-4368:
-------------------------------------
[~startjava] You should turn on the property: *enforceQuota*
* *enforceQuota* :
(Java system property: **zookeeper.enforceQuota**)
**New in 3.7.0:**
Enforce the quota check. When enabled and the client exceeds the total bytes
or children count hard quota under a znode, the server will reject the request
and reply the client a `QuotaExceededException` by force. The default value is:
false. Exploring [quota
feature](http://zookeeper.apache.org/doc/current/zookeeperQuotas.html) for more
details.
> great quota no exception!
> -------------------------
>
> Key: ZOOKEEPER-4368
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4368
> Project: ZooKeeper
> Issue Type: Bug
> Affects Versions: 3.7.0
> Reporter: startjava
> Priority: Major
>
> [zk: localhost:2181(CONNECTED) 2] ls /
> [a, b, c, zookeeper]
> [zk: localhost:2181(CONNECTED) 3] create /d
> Created /d
> [zk: localhost:2181(CONNECTED) 4] setquota -B 3 /d
> [zk: localhost:2181(CONNECTED) 5] listquota /d
> absolute path is /zookeeper/quota/d/zookeeper_limits
> Output quota for /d count=-1,bytes=-1=;byteHardLimit=3;countHardLimit=-1
> Output stat for /d count=1,bytes=0
> [zk: localhost:2181(CONNECTED) 6] set /d 1234567890
> [zk: localhost:2181(CONNECTED) 7] get /d
> 1234567890
> [zk: localhost:2181(CONNECTED) 8]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)