zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kishore g <g.kish...@gmail.com>
Subject Behavior when client disconnects
Date Wed, 04 Dec 2013 20:37:21 GMT

Consider the following case

   1. Client c1 sends a write(w1) to zk1
   2. w1 gets ack from zk2 but not yet from zk3, but quorum is reached
   3. By the time zk1 sends response back to c1, the connection breaks
   4. c1 did not get the zxid for the latest transaction

Now c1, depending on whether it connects to zk2 or zk3 might see that w1
was successful or failure.  Is this analysis correct or will c1
automatically invoke a sync under the hoods when it gets disconnected and
connected to another server?

If no, how should one handle this scenario.
Kishore G

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