[
https://issues.apache.org/jira/browse/ZOOKEEPER-3301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16835538#comment-16835538
]
maoling commented on ZOOKEEPER-3301:
------------------------------------
find another issue:
[zk: 127.0.0.1:2180(CONNECTED) 6] create /you
Created /you
[zk: 127.0.0.1:2180(CONNECTED) 7] create /you/quota
Created /you/quota
[zk: 127.0.0.1:2180(CONNECTED) 8] set /you/quota data
[zk: 127.0.0.1:2180(CONNECTED) 9] create /you/quota/data data
Created /you/quota/data
[zk: 127.0.0.1:2180(CONNECTED) 10] setquota -b 5 /you/quota
fuck---code:NONODE
fuck---code:NONODE
[zk: 127.0.0.1:2180(CONNECTED) 11] set /you/quota/data newdata
2019-05-08 20:07:45,027 [myid:] - WARN [SyncThread:0:NIOServerCnxn@699] -
Unexpected exception. Destruction averted.
java.lang.NullPointerException
at
org.apache.jute.BinaryOutputArchive.writeRecord(BinaryOutputArchive.java:123)
at
org.apache.zookeeper.proto.SetDataResponse.serialize(SetDataResponse.java:41)
at
org.apache.jute.BinaryOutputArchive.writeRecord(BinaryOutputArchive.java:123)
at org.apache.zookeeper.server.ServerCnxn.serializeRecord(ServerCnxn.java:119)
at org.apache.zookeeper.server.ServerCnxn.serialize(ServerCnxn.java:145)
at
org.apache.zookeeper.server.NIOServerCnxn.sendResponse(NIOServerCnxn.java:696)
at org.apache.zookeeper.server.ServerCnxn.sendResponse(ServerCnxn.java:112)
at
org.apache.zookeeper.server.FinalRequestProcessor.processRequest(FinalRequestProcessor.java:567)
at
org.apache.zookeeper.server.SyncRequestProcessor.flush(SyncRequestProcessor.java:184)
at
org.apache.zookeeper.server.SyncRequestProcessor.run(SyncRequestProcessor.java:115)
> do a hard constraint on the "setquota",make it can really control the data
> size and child counts of one node.
> -------------------------------------------------------------------------------------------------------------
>
> Key: ZOOKEEPER-3301
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3301
> Project: ZooKeeper
> Issue Type: Sub-task
> Reporter: maoling
> Priority: Major
>
> We need a complete quota feature, not just the printing the warning logs
> which is a bit chicken ribs.
> [zk: localhost:2181(CONNECTED) 18] setquota -n 2 /quota_test
> [zk: localhost:2181(CONNECTED) 19] create /quota_test/child_1
> Created /quota_test/child_1
> [zk: localhost:2181(CONNECTED) 20] create /quota_test/child_2
> Created /quota_test/child_2
> [zk: localhost:2181(CONNECTED) 21] create /quota_test/child_3
> Created /quota_test/child_3
> look at the following logs:
> 2019-03-07 11:22:36,680 [myid:1] - WARN [SyncThread:0:DataTree@374] - Quota
> exceeded: /quota_test count=3 limit=2
> 2019-03-07 11:22:41,861 [myid:1] - WARN [SyncThread:0:DataTree@374] - Quota
> exceeded: /quota_test count=4 limit=2
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)