Skip to content
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

Support Version Rollbacks for RocksDB #6

Merged
merged 6 commits into from
Sep 17, 2019

Conversation

RatanRSur
Copy link
Contributor

PR description

Primary:

This fixes an issue where rolling back the default database version could cause an error. It's important that the loading logic depends only on the database version so we can have full control. It's still fine to set auxiliary properties like isSegmentIsolationSupported as we go through the creation process.

Other:

Extend the plugin interface with Closeable

Fixed Issue(s)

Signed-off-by: Ratan Rai Sur <[email protected]>
Signed-off-by: Ratan Rai Sur <[email protected]>
Signed-off-by: Ratan Rai Sur <[email protected]>
Signed-off-by: Ratan Rai Sur <[email protected]>
Copy link
Member

@ryjones ryjones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RatanRSur could you please squash this into one commit and rebase on the tip of master? thanks

@RatanRSur
Copy link
Contributor Author

Hey @ryjones, I believe @shemnon reached out and addressed this?

@ryjones
Copy link
Member

ryjones commented Sep 16, 2019

Hey @ryjones, I believe @shemnon reached out and addressed this?

correct - I'm wrong, ignore me

@RatanRSur
Copy link
Contributor Author

No worries! I believe that once you mark your comment as resolved, the change requested block will be lifted

@ryjones ryjones self-requested a review September 16, 2019 19:30
Copy link
Member

@ryjones ryjones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the turbulence!

ryjones
ryjones previously approved these changes Sep 16, 2019
Copy link
Member

@ryjones ryjones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignore me

@RatanRSur
Copy link
Contributor Author

One more thing - can you withdraw your approval? We use those for signaling that someone has done a complete code review and thinks the changes are ready to be merged.

@ryjones
Copy link
Member

ryjones commented Sep 16, 2019

One more thing - can you withdraw your approval? We use those for signaling that someone has done a complete code review and thinks the changes are ready to be merged.

Tell me what to click and where. I can't find an option for me to dismiss my own review

@RatanRSur
Copy link
Contributor Author

RatanRSur commented Sep 16, 2019

I had to look it up myself! Turns out I can do it myself but so that you know:

Where it says 1 approval, the drop down will have your name. On the right side overflow menu there's a Dismiss Review button

@ryjones ryjones dismissed their stale review September 16, 2019 19:57

I clicked without understanding

Copy link
Contributor

@CjHare CjHare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cause of Privacy AT failures are the RocksDBKeyValuePrivacyFactory attempting to use the same RocksDB file as the RocksDBKeyValueFactory.
Overriding of the storage path to include an additional path especially for the Privacy RocksDB file (yes, there are currently two RocksDB databases)

I've pre-emptively approved this, because as soon as you get those Privacy ATs passing (which could be done by accepting the suggested commits) then the PR is good to go!

Co-Authored-By: CJ Hare <[email protected]>
Signed-off-by: Ratan Rai Sur <[email protected]>
@RatanRSur RatanRSur merged this pull request into hyperledger:master Sep 17, 2019
@RatanRSur RatanRSur deleted the storage-provider-harden branch September 17, 2019 13:14
RatanRSur added a commit to RatanRSur/besu that referenced this pull request Sep 17, 2019
CjHare pushed a commit that referenced this pull request Sep 17, 2019
Signed-off-by: CJ Hare <[email protected]>
Signed-off-by: Ratan Rai Sur <[email protected]>
fab-10 added a commit to fab-10/besu that referenced this pull request Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants