-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(db/trans-cache): verify cached files with crc32c #5523
feat(db/trans-cache): verify cached files with crc32c #5523
Conversation
Codecov Report
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. @@ Coverage Diff @@
## release_v4.7.3 #5523 +/- ##
====================================================
+ Coverage 64.99% 65.20% +0.20%
- Complexity 10020 10056 +36
====================================================
Files 894 894
Lines 53816 53847 +31
Branches 5926 5929 +3
====================================================
+ Hits 34979 35112 +133
+ Misses 16123 16019 -104
- Partials 2714 2716 +2
... and 21 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -288,6 +295,7 @@ private boolean recovery() { | |||
} | |||
|
|||
private boolean recovery(int index, Path file) { | |||
checkCrc32c(index, file); |
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.
Has this error happened in tests? Why will it happen? Will some error info printed when this kind of errors be found?
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.
To catch accidents like disk write errors, service crash etc.
Will some error info printed when this kind of errors be found?
Yes, there will be an exception.
Use CRC32 to catch accidents like disk write errors, etc.