Hi,
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.
Thanks,
Kishore G
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.
Thanks,
Kishore G