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

Enable cache.states.persist-snapshot feature flag by default #1980

Merged
merged 3 commits into from Mar 20, 2023

Conversation

Vovchyk
Copy link
Contributor

@Vovchyk Vovchyk commented Feb 23, 2023

Description

Motivation and Context

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • Tests for the changes have been added (for bug fixes / features)
  • Requires Activation Code (Hard Fork)
  • Other information:

rmoreliovlabs
rmoreliovlabs previously approved these changes Feb 23, 2023
@casiojapi casiojapi self-requested a review February 23, 2023 15:43
casiojapi
casiojapi previously approved these changes Feb 23, 2023
@illuque-iov
Copy link

Hey @Vovchyk, just for you to know: if we enable this by default, it will not work OOTB on Dockerized RSKj, we would need to fix the java.io.File#renameTo usage in CacheSnapshotHandler first for it to work on Docker.

@Vovchyk
Copy link
Contributor Author

Vovchyk commented Feb 24, 2023

Hey @Vovchyk, just for you to know: if we enable this by default, it will not work OOTB on Dockerized RSKj, we would need to fix the java.io.File#renameTo usage in CacheSnapshotHandler first for it to work on Docker.

hey @illuque-iov , could you please elaborate more on your comment? What needs to be fixed?

@illuque-iov
Copy link

Sure, let me explain: java.io.File#renameTo may not work fine in Docker depending on how you setup volumes, etc., check Javadoc. I've faced this issue myself. Using java.io.File#renameTo should be enough according to some quick tests I've performed.

@Vovchyk
Copy link
Contributor Author

Vovchyk commented Feb 24, 2023

Sure, let me explain: java.io.File#renameTo may not work fine in Docker depending on how you setup volumes, etc., check Javadoc. I've faced this issue myself. Using java.io.File#renameTo should be enough according to some quick tests I've performed.

I see. Let's investigate this issue separately. Looks like it's not docker specific

@Vovchyk Vovchyk dismissed stale reviews from casiojapi and rmoreliovlabs via 47acd8f February 24, 2023 12:18
@Vovchyk
Copy link
Contributor Author

Vovchyk commented Feb 24, 2023

Sure, let me explain: java.io.File#renameTo may not work fine in Docker depending on how you setup volumes, etc., check Javadoc. I've faced this issue myself. Using java.io.File#renameTo should be enough according to some quick tests I've performed.

I see. Let's investigate this issue separately. Looks like it's not docker specific

I was able to reproduce the issue with external mounted volumes in a docker container. Updated PR accordingly. Nice catch @illuque-iov 👍🏻

illuque-iov
illuque-iov previously approved these changes Feb 24, 2023
@sonarcloud
Copy link

sonarcloud bot commented Mar 20, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

66.7% 66.7% Coverage
0.0% 0.0% Duplication

@Vovchyk
Copy link
Contributor Author

Vovchyk commented Mar 20, 2023

pipeline:run

@Vovchyk Vovchyk merged commit f1c6962 into master Mar 20, 2023
5 checks passed
@Vovchyk Vovchyk deleted the enable-persist-snapshot branch March 20, 2023 17:02
@aeidelman aeidelman added this to the Hop 4.4.0 milestone Mar 28, 2023
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.

None yet

5 participants