-
Notifications
You must be signed in to change notification settings - Fork 487
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
config: move crash and stateproof DB defaults to hot dir #5817
Conversation
Why? |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #5817 +/- ##
==========================================
- Coverage 55.63% 55.61% -0.02%
==========================================
Files 475 475
Lines 66842 66860 +18
==========================================
- Hits 37187 37184 -3
- Misses 27141 27156 +15
- Partials 2514 2520 +6 ☔ View full report in Codecov by Sentry. |
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 agree on the crash db move but do we really write stateproof db that often?
The stateproof DB is
I guess it depends on how cold you think cold will be.. |
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 but use existing file name constants instead of literals
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.
Changes look good. Left some suggestions that I think should be adopted, but don't need to block the PR.
Summary
This moves the crash and stateproof DBs to default to using the hot data directory. Like the ledger DB, they are frequently written while processing consensus and block updates, and are also fairly small in size, so they would benefit from being located in the hot tier.
Resolves #5831
Test Plan
Updated TestEnsureAndResolveGenesisDirs_hierarchy and TestConfiguredDataDirs.
Added TestEnsureAndResolveGenesisDirs_migrate and TestEnsureAndResolveGenesisDirs_migrateFail.