Skip to content

Tech Note 3

Randgalt edited this page Apr 18, 2012 · 5 revisions

Dealing with session failure.

Details

ZooKeeper clients maintain a session with the server ensemble. Ephemeral nodes are tied to this session. When writing ZooKeeper-based applications you must deal with session expirations (due to network partitions, server crashes, etc.). This ZooKeeper FAQ discusses this: http://wiki.apache.org/hadoop/ZooKeeper/FAQ#A3

For the most part, Curator shields you from the details of session management. However, Curator’s behavior can be modified. By default, Curator treats session failures the same way that it treats connection failures: i.e. the current retry policy is checked and, if permitted, operations are retried.

Clone this wiki locally