-
Notifications
You must be signed in to change notification settings - Fork 844
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
Default storage format now Bonsai #6536
Conversation
Signed-off-by: Sally MacFarlane <[email protected]>
Signed-off-by: Sally MacFarlane <[email protected]>
Signed-off-by: Sally MacFarlane <[email protected]>
Signed-off-by: Sally MacFarlane <[email protected]>
Signed-off-by: Sally MacFarlane <[email protected]>
Signed-off-by: Sally MacFarlane <[email protected]>
Signed-off-by: Sally MacFarlane <[email protected]>
|
Signed-off-by: Sally MacFarlane <[email protected]>
Signed-off-by: Sally MacFarlane <[email protected]>
Signed-off-by: Sally MacFarlane <[email protected]>
Signed-off-by: Sally MacFarlane <[email protected]>
Signed-off-by: Sally MacFarlane <[email protected]>
Signed-off-by: Sally MacFarlane <[email protected]>
What happens if you are not specifying the format before and after the upgrade to this version, is the previous Forest format recognized or there is an format mismatch error? |
Signed-off-by: Sally MacFarlane <[email protected]>
Good callout - Added to the description of the PR and the changelog |
Signed-off-by: Sally MacFarlane <[email protected]>
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, just will prefer to have the tests use the new default instead of keeping using Forest
params.addAll( | ||
DataStorageOptions.fromConfig( | ||
ImmutableDataStorageConfiguration.builder() | ||
.from(DataStorageConfiguration.DEFAULT_FOREST_CONFIG) |
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.
should not be better to use BONSAI in tests since it is the default?
@@ -201,6 +202,7 @@ public void startNode(final BesuNode node) { | |||
.nodeKey(new NodeKey(new KeyPairSecurityModule(KeyPairUtil.loadKeyPair(dataDir)))) | |||
.metricsSystem(metricsSystem) | |||
.transactionPoolConfiguration(txPoolConfig) | |||
.dataStorageConfiguration(DataStorageConfiguration.DEFAULT_FOREST_CONFIG) |
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.
same as above
That's a fair comment on the tests @fab-10 - I'm not going to get that done today though - do you reckon that could be a separate PR? |
Yes. definitely it could be done in another PR |
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, just the db mismatch warning message could be improved
Co-authored-by: Fabio Di Fabio <[email protected]> Signed-off-by: Sally MacFarlane <[email protected]>
* default bonsai * be explicit about config in tests * default forest storage for fast sync tests * added upcoming breaking changes section * added db mismatch message Signed-off-by: Sally MacFarlane <[email protected]> --------- Signed-off-by: Sally MacFarlane <[email protected]>
Builds on #6530
Change default storage format to BONSAI (was FOREST)
Note - if you had previously used FOREST, this is a breaking change - at startup you will get an error indicating the mismatch -
Mismatch: DB at '/your-path' is FOREST (Version 1) but config expects BONSAI (Version 2). Please check your config
Refs #5391