-
Notifications
You must be signed in to change notification settings - Fork 7.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
nice catch !
…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