Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions asab/library/providers/zookeeper.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,12 @@ async def read(self, path: str) -> typing.IO:

try:
node_data = await self.Zookeeper.get_data(node_path)
# NoNodeError is silent from the wrapper (returns None)
except kazoo.exceptions.ConnectionClosedError:
L.warning("Zookeeper library provider is not ready")
raise RuntimeError("Zookeeper library provider is not ready")
except kazoo.exceptions.NoNodeError:
return None
except kazoo.exceptions.KazooException:
return None # TODO: should it be silent or propagated?

# Consider adding other exceptions from Kazoo to indicate common non-critical errors

Expand Down