-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
mvcc: restore into tree index with one key index #8127
Conversation
will this fix #8048? |
5eff571
to
2d2af1d
Compare
@xiang90 yes, appears to be fixed; could repro on master, can't repro with the patch |
d939914
to
39fad19
Compare
/cc @fanminshi |
mvcc/kvstore.go
Outdated
kiCache := make(map[string]*keyIndex, restoreChunkKeys) | ||
for rkv := range rkvc { | ||
ki, ok := kiCache[rkv.kstr] | ||
// purge cache if too many keys and missing |
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.
s/many keys and/many keys are/
?
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.
missing as in rkv.kstr is missing, but can clarify
Clobbering the mvcc kvindex with new keyIndexes for each restore chunk would cause index corruption by dropping historical information.
39fad19
to
51a568a
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. Can confirm that this fixes the functional-tester issue. Thanks!
Clobbering the mvcc kvindex with new keyIndexes for each restore
chunk would cause index corruption by dropping historical information.