Skip to content

Commit 6054d82

Browse files
committed
fix(exceptions): Register exception for server-side QUOTAEXCEEDED(-125)
Without this, the out-of-quota conditions cause Kazoo's request handling thread to die, and the application is left waiting for a non-existent reply and/or does not receive any clue that its Kazoo client handle is not functional anymore.
1 parent 2c36d69 commit 6054d82

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

kazoo/exceptions.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,11 @@ class NotReadOnlyCallError(ZookeeperError):
187187
a read-only server"""
188188

189189

190+
@_zookeeper_exception(-125)
191+
class QuotaExceededError(ZookeeperError):
192+
"""Exceeded the quota that was set on the path"""
193+
194+
190195
class ConnectionClosedError(SessionExpiredError):
191196
"""Connection is closed"""
192197

0 commit comments

Comments
 (0)