Skip to content

Commit

Permalink
fix(exceptions): Register exception for server-side QUOTAEXCEEDED(-125)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ztzg committed May 25, 2023
1 parent 2c36d69 commit 6054d82
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kazoo/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ class NotReadOnlyCallError(ZookeeperError):
a read-only server"""


@_zookeeper_exception(-125)
class QuotaExceededError(ZookeeperError):
"""Exceeded the quota that was set on the path"""


class ConnectionClosedError(SessionExpiredError):
"""Connection is closed"""

Expand Down

0 comments on commit 6054d82

Please sign in to comment.