ZOOKEEPER-4785: Txn loss due to race condition in Learner.syncWithLeader() during DIFF sync#2111
Conversation
…der() during DIFF sync Author: Li Wang <liwang@apple.com>
f158fef to
53d8980
Compare
…der() during DIFF sync (apache#2111) Author: Li Wang <liwang@apple.com> Co-authored-by: liwang <liwang@apple.com>
…der() during DIFF sync (apache#2111) Author: Li Wang <liwang@apple.com> Co-authored-by: liwang <liwang@apple.com>
…der() during DIFF sync (apache#2111) Author: Li Wang <liwang@apple.com> Co-authored-by: liwang <liwang@apple.com>
…der() during DIFF sync (apache#2111) Author: Li Wang <liwang@apple.com> Co-authored-by: liwang <liwang@apple.com>
…der() during DIFF sync (apache#2111) Author: Li Wang <liwang@apple.com> Co-authored-by: liwang <liwang@apple.com>
|
hello, my friend. I met a issue in the production, the temporary node in the lead is deleted, however the temporary node in the other followers is not deleted. so we got data inconsistent between lead and follower. the version of ZK is 3.8.1. |
Data inconsistence here means digest mismatch count is greater than 0 or you mean client see different data from leader and follower?
This means that follower didn't persist the txns from diff sync with leader into disk before shutdown and the follower lost the txns. |
|
Data inconsistence here means digest mismatch count is greater than 0 or you mean client see different data from leader and follower? This means that follower didn't persist the txns from diff sync with leader into disk before shutdown and the follower lost the txns. |
Provides a fix for the txn loss issue caused by the race condition in DIFF sync.
Author: Li Wang liwang@apple.com