zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <ted.dunn...@gmail.com>
Subject Re: ephemerals on ZK failure
Date Wed, 28 Sep 2011 00:36:17 GMT
If the reconnection is done before the session expires, the ephemeral is
never deleted.

If the session expires either due to time when disconnected or because the
ZK servers are all taken down, then the ephemeral is deleted when the server
decides the session has expired and the client is notified of the session
expiration as soon as possible.  Ephemerals are never brought back after the
session expires.

Note that taking down one ZK server of many will just cause a very short
disconnect.  If even one ZK server stays up, the session and the ephemeral
can survive although a quorum will have to be re-established soon to
preserve the session.

On Tue, Sep 27, 2011 at 11:51 PM, Ishaaq Chandy <ishaaq@gmail.com> wrote:

> Hi,
> What is the expected behaviour of ephemerals on disconnects?
> Suppose a client creates an ephemeral and then, some time later, we have a
> network failure, or ZK shuts down/crashes.
> During this downtime, the client JVM is still up and running. What happens
> when the ZK connection is re-established, does the ephemeral
> get automatically recreated or does the client have to make an explicit
> call
> to recreate it?
> Thanks,
> Ishaaq

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message