-
Notifications
You must be signed in to change notification settings - Fork 1.5k
FDB: Disk based snapshot and restore - Version 2 #1733
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
Conversation
918aac0 to
00e2a30
Compare
mpilman
left a comment
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.
I am not quite through with my review yet. As a general comment: please check your excessive use of state variables. I didn't check all of them and I think a lot of them are unnecessary in the old code. This is bad style, makes your code slower, uses more memory, and makes understanding the code much harder (as state variables are not scoped).
I also added a few other comments
alexmiller-apple
left a comment
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.
I've run out of time about half way through.
@mpilman, could you please do a closer read through and review of this? I'm still going to be deeply lacking time while my own 6.2 work is unfinished.
fdbclient/ManagementAPI.actor.h
Outdated
| // execute payload in 'snapCmd' on all the coordinators, TLogs and | ||
| // storage nodes | ||
| ACTOR Future<Void> mgmtSnapCreate(Database cx, StringRef snapCmd); | ||
| ACTOR Future<Void> mgmtSnapCreate(Database cx, StringRef snapCmd, int version); |
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.
For future reference, as this is about to be removed anyway, int version is a great opportunity to use an enum class instead of an int.
|
Following are the items that we know of that will be addressed in 6.2 or later:
|
|
This PR is dependent on a bug fix in setDDMode which is in this PR: #1866 |
|
I'm not sure why your CI got stuck. Let's see if this works in one line... @fdb-build, run bindings please, run cmake linux please, run documentation please, run linux please. |
alexmiller-apple
left a comment
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.
I did a quick skim while building, and this seems fine to merge.
I'm kicking off some extra correctness:
all tests = 20190723-004450-alexmiller-4034900cf15fc655
snap only = 20190723-004752-alexmiller-4d476ce0d0cc6fc7
Co-Authored-By: Alex Miller <[email protected]>
It compiled and tested just fine in our environments. With the commit that removed the commented line of code - it cleared CI. Sounds like CI getting struck for unknown issue. |
Few snap tests will fail, because the dependency fix #1866 is not yet merged. |
|
Fixed the issue #1675 |
Currently, we have a disk based snapshot and restore mechanism implemented in FDB6, but, there are few restrictions with the current implementation, namely:
Requirements:
Non Requirements:
more details here:
https://docs.google.com/document/d/1Udgrpqu2D4DNEv1_2id9E7CQVDkisaTtK31FybVgNYQ/edit?usp=sharing