-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Secondary Instance will lost manifest data when calling TryCatchUpWithPrimary #7815
Comments
Thanks @CoderSong2015. This is a bug due to current (hacky) way to handle the primary's MANIFEST switch. |
I will submit a fix for this. cc @CoderSong2015 |
Summary: This PR - adds a class `ManifestTailer` that inherits from `VersionEditHandlerPointInTime`. `ManifestTailer::Iterate()` can be called multiple times to tail the primary instance's MANIFEST and apply the changes to the secondary, - updates the implementation of `ReactiveVersionSet::ReadAndApply` to use this class, - removes unused code in version_set.cc, - updates existing tests, e.g. removing deleted sync points from unit tests, - adds a new test to address the bug in #7815. Pull Request resolved: #7998 Test Plan: make check Existing and newly-added tests in version_set_test.cc and db_secondary_test.cc Reviewed By: jay-zhuang Differential Revision: D26926641 Pulled By: riversand963 fbshipit-source-id: 8d4dd15db0ba863c213f743e33b5a207e948c980
@riversand963 Thanks very much. |
This is the approach I took in #7998. Should we close this issue? |
Expected behavior
Secondary Instance could read all primary's manifest data after calling TryCatchUpWithPrimary()
Actual behavior
Secondary Instance will lost manifest data when the MANIFEST file switch twice before TryCatchUpWithPrimary() called
Steps to reproduce the behavior
Calling TryCatchUpWithPrimary after primary instance switch MANIFEST twice.
@riversand963
The text was updated successfully, but these errors were encountered: