In here someone said:
"even if you read from a different follower every time, you'll never see version 3 of the data after seeing version 4."
So if I have 3 nodes zookeeper quorum as below:
zk0 -- leader
zk1
zk2
Assume there is a value in quorum "3" and I have a client connects to zk1
, then my client sends a write request (update "3" to "4") and zk0
(leader) writes the value then subsequently received the confirmation from zk1
. My client can see the new ("4"), because it connects to zk1
.
Now my question is, if I switch my client from zk1
to zk2
(leader hasn't received write confirmation from zk2
, so zk2
is behind the quorum) I will see the value as "3" rather than "4". Does it break the sequential consistency?