-
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
Feat/sector storage unseal #7730
Conversation
3757800
to
dcd348a
Compare
Codecov Report
@@ Coverage Diff @@
## next #7730 +/- ##
==========================================
+ Coverage 39.55% 39.59% +0.04%
==========================================
Files 646 646
Lines 68606 68687 +81
==========================================
+ Hits 27137 27197 +60
- Misses 36784 36795 +11
- Partials 4685 4695 +10
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.
Looks reasonable, just 2 questions
// NOTE: We set allowFetch to false in so that we always execute on a worker | ||
// with direct access to the data. We want to do that because this step is | ||
// generally very cheap / fast, and transferring data is not worth the effort | ||
selector := newExistingSelector(m.index, sector.ID, storiface.FTUnsealed|storiface.FTUpdate|storiface.FTUpdateCache|storiface.FTCache, true) |
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.
Do we have benchmarks on how fast this is?
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.
Good idea. I'll add some basic benchmarking to the unit test so that @cryptonemo can generate a report on the big sectors.
- Unsealing replica update with sector key works and tested - Sector key generation added and tested
1978317
to
a5be808
Compare
This extends sector-storage to do unseal with snap deals replicas (+sector key) and to do sector key generation with snap deals replicas (+ unsealed data)
The snap deals test is extended to exercise both unsealing of data in a snap deals replica and removing and regenerating the sector key.