-
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
sealing: Recover sectors after failed AddPiece #7444
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7444 +/- ##
=======================================
Coverage 39.54% 39.54%
=======================================
Files 616 616
Lines 65295 65297 +2
=======================================
+ Hits 25818 25819 +1
- Misses 34980 34988 +8
+ Partials 4497 4490 -7
Continue to review full report at Codecov.
|
@@ -245,9 +245,7 @@ func (m *Sealing) handleAddPiece(ctx statemachine.Context, sector SectorInfo) er | |||
} | |||
|
|||
func (m *Sealing) handleAddPieceFailed(ctx statemachine.Context, sector SectorInfo) error { | |||
log.Errorf("No recovery plan for AddPiece failing") | |||
// todo: cleanup sector / just go retry (requires adding offset param to AddPiece in sector-storage for this to be safe) |
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.
Review note: we do have offset in AddPiece already, calculated from the existingPieces thing which only has valid pieces
Seems to work, perhaps not optimally but it saved a deal from being lost. A piece failed to add to a sector, the sector ended up as a CC sector:
The piece was added to another sector, sealed, and the storage deal is StorageDealActive. |
No description provided.