Arshad Mohammad created ZOOKEEPER-2593: ------------------------------------------
Summary: Enforce the quota limit Key: ZOOKEEPER-2593 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2593 Project: ZooKeeper Issue Type: New Feature Components: java client, server Reporter: Arshad Mohammad Assignee: Arshad Mohammad Currently in ZooKeeper when quota limit exceeds, a warning is logged. There are many user scenarios where it is desired to throw exception in case quota limits exceed. We should make it configurable whether to throw exception or just log the warning when quota limits exceed. *Implementation:* add new properties {code} enforce.number.quota enforce.byte.quota {code} add new error codes {code} KeeperException.Code.NUMBERQUOTAEXCEED KeeperException.Code.BYTEQUOTAEXCEED {code} add new exception {code} KeeperException.NumberQuotaExceedException KeeperException.ByteQuotaExceedException {code} *Basic Scenarios:* # If enforce.number.quota=true and number quota exceed, then server should send NUMBERQUOTAEXCEED error code and client should throw NumberQuotaExceedException # If enforce.byte.quota=true and byte quota exceed, then server should send BYTEQUOTAEXCEED error code and client should throw ByteQuotaExceedException *Impacted APIs:* create setData -- This message was sent by Atlassian JIRA (v6.3.4#6332)