-
Notifications
You must be signed in to change notification settings - Fork 44
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
add recover rollup command #594
Conversation
Step 1. Start rollup node, apply mutations and wait rollup interval ms to execute rollup
Step 2. stop rollup node, clean the mutation and doc db
Step 3. start recover rollup
Step 4. start rollup node again
Step 5. test document database create/update/delete/query |
Future workrollup integration test script |
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## main #594 +/- ##
=======================================
Coverage 61.70% 61.70%
=======================================
Files 9 9
Lines 470 470
Branches 69 69
=======================================
Hits 290 290
Misses 180 180
Flags with carried forward coverage won't be shown. Click here to find out more. 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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
PR-Codex overview
This PR focuses on adding support for recovering rollup nodes.
Detailed summary:
RecoverType
enum to differentiate between index and rollup recoveryRecoverConfig
struct to includerecover_type
fieldRecover
struct to includestorage
fieldrecover_stat
method to recover database staterecover_from_arweave_tx
method to update mutation statistics for rollup nodesis_recover_rollup
method to check if the recovery is for a rollup nodeadd_mutation
method to update mutation statistics for rollup nodesupdate_mutation_stat
method to update mutation statistics for rollup nodesRollup
variant toRecoverCommand
enum inDB3Command
structDB3Command::build_wallet
method to includeRecoverType
parameterDB3Command::Recover
match block