Skip to content

Commit

Permalink
local index directory: recover tool (#1410)
Browse files Browse the repository at this point in the history
* initial disaster recovery tool for LID

* wip

* do not block on individual error

* instantiate lid

* report

* catch signal

* fixup

* comment out sector already in progress

* fixup

* start containers with init: true

* record that we dont have an unsealed copy

* match deals with boost sqlite db and piece store

* fixup

* fixup

* use logger

* fixup

* disable stacktrace

* fixup

* extract piece store away from disaster recovery struct

* add more sanity checks

* compare IsUnsealed vs storage find

* improve safeIsUnseal

* fixup

* better logs

* expand repodir

* calc properly next offset

* fixup

* add sector id to logs

* incr offset

* break after finding expired deal

* more logs

* fewer logs

* better logs

* better error

* refactor

* refactor minerApi

* better logs

* add time around add index

* pd.Start
  • Loading branch information
nonsense authored May 19, 2023
1 parent 2b4de7c commit 3dc7e5a
Show file tree
Hide file tree
Showing 5 changed files with 931 additions and 120 deletions.
1 change: 1 addition & 0 deletions cmd/boostd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func main() {
dagstoreCmd,
netCmd,
pieceDirCmd,
recoverCmd,
},
}
app.Setup()
Expand Down
Loading

0 comments on commit 3dc7e5a

Please sign in to comment.