-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
bug: sealing: FinalizeReplicaUpdate #8018
Conversation
|
||
return ffi.ClearCache(uint64(ssize), paths.Cache) | ||
|
||
// TODO: ^ above but for snapdeals |
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.
Main todo; not sure if passing UpdateCache into ClearCache is/does the correct thing
Codecov Report
@@ Coverage Diff @@
## master #8018 +/- ##
==========================================
- Coverage 39.21% 39.19% -0.02%
==========================================
Files 660 660
Lines 71436 71587 +151
==========================================
+ Hits 28014 28062 +48
- Misses 38602 38693 +91
- Partials 4820 4832 +12
Continue to review full report at Codecov.
|
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
One thing this reminds me of is that we should probably track work for calling manager ReleaseSectorKey during the finalize step based on a config param. I think right now we end up carrying original Replica, UpdatedReplica and UnsealedData by default. And I don't think there's a good way to configure dropping the sector key.
--edit--
reminder to update specs-storage dependency to master
Should old sealed files keep in the path until |
They are kept, this PR doesn't handle cleanup of those, this will come as a follow-up |
Or maybe that's easy enough to do now |
Yeah thanks @remakeZK, I was forgetting about winning post. We'll need a separate state to do sector key cleanup, or postpone finalize by 2 finalities and do it there. |
Need better PR title |
Related Issues
Closes #8012
Depends on filecoin-project/specs-storage#22
Proposed Changes
Additional Info
Checklist
Before you mark the PR ready for review, please make sure that:
<PR type>: <area>: <change being made>
fix: mempool: Introduce a cache for valid signatures
PR type
: fix, feat, INTERFACE BREAKING CHANGE, CONSENSUS BREAKING, build, chore, ci, docs,perf, refactor, revert, style, testarea
: api, chain, state, vm, data transfer, market, mempool, message, block production, multisig, networking, paychan, proving, sealing, wallet, deps