will be committed; if he has not p1, then p1 will be dropped.
> > so for a client, if write query takes too much time, the client may
> > receive Timeout Exception, and it must query servers again to know
> whether
> > previous write is SUCCESS or FAIL?
> >
> &g
meout Exception, and it must query servers again to know whether
> previous write is SUCCESS or FAIL?
>
>
>
> 121476...@qq.com
>
> From: Michael Han
> Date: 2019-09-04 02:26
> To: user
> Subject: Re: a misunderstanding of ZAB
> +1 with what Alex has said.
>
> T
o for a client, if write query takes too much time, the client may receive
Timeout Exception, and it must query servers again to know whether previous
write is SUCCESS or FAIL?
121476...@qq.com
From: Michael Han
Date: 2019-09-04 02:26
To: user
Subject: Re: a misunderstanding of ZAB
+1 with
the key is what alex said: p1 can be committed or dropped. it was not
delivered to a quorum. (if it was, it must be delivered to everyone.)
it wasn't skipped. it would be skipped if a new leader did not deliver
it and proposed new messages. thus, since it isn't delivered or
skipped, skipping it or
+1 with what Alex has said.
The commit case is easy to understand. For skip case, think this example:
old quorum: F1 F2 F3 F4 F5, with F1 as L1. L1 has p on F1 and F2.
new quorum: F1 F2 F3 F4 F5, with F3 as L2. It's possible, because although
F1 and F2 has latest zxid, they could be partitioned a
In case2, it is possible that p1 is committed or dropped. It depends on
whether L2 knows about p1.
Note that L2 needs the support of a quorum to become leader, and in ZK
since there is no state copy from followers to leader, the leader candidate
needs to have the longest log.
So, if L2's log includ
Hi,
That's a good question. So if I understand correctly, you are asking what
happens if there is a new Leader Election in ZooKeeper, what is the "last
seen zxid". I checked the ZAB protocol, it is not entirely clear for me as
well, but my understanding is that the last seen zxid is the last
trans
hi, i'm a new to zookeeper, and this problem confuses me for nearly two
months...
papers tell me that zab must satisfy:
A message delivered by one sever must be delivered on quorum.
A message skipped must always be skipped.
Then consider two cases below, L is short for leader, F is short for follo