Skip to content
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

Add partition info to the 'sectors status' command #7246

Merged
merged 1 commit into from
Sep 2, 2021

Conversation

magik6k
Copy link
Contributor

@magik6k magik6k commented Sep 1, 2021

No description provided.

@magik6k magik6k requested a review from a team as a code owner September 1, 2021 10:00
@codecov
Copy link

codecov bot commented Sep 1, 2021

Codecov Report

Merging #7246 (fea430a) into master (6a02237) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7246      +/-   ##
==========================================
- Coverage   39.09%   39.08%   -0.01%     
==========================================
  Files         610      610              
  Lines       64753    64809      +56     
==========================================
+ Hits        25315    25333      +18     
- Misses      35043    35085      +42     
+ Partials     4395     4391       -4     
Impacted Files Coverage Δ
cmd/lotus-miner/sectors.go 11.05% <0.00%> (-0.76%) ⬇️
chain/actors/builtin/paych/paych.go 16.88% <0.00%> (-5.20%) ⬇️
extern/sector-storage/worker_tracked.go 90.14% <0.00%> (-4.23%) ⬇️
chain/stmgr/searchwait.go 63.39% <0.00%> (-1.31%) ⬇️
chain/stmgr/execute.go 74.09% <0.00%> (-1.04%) ⬇️
miner/miner.go 53.31% <0.00%> (-1.00%) ⬇️
storage/wdpost_run.go 69.62% <0.00%> (-0.64%) ⬇️
blockstore/badger/blockstore.go 57.28% <0.00%> (-0.41%) ⬇️
node/impl/storminer.go 22.46% <0.00%> (-0.40%) ⬇️
node/impl/full/state.go 34.22% <0.00%> (-0.25%) ⬇️
... and 14 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6a02237...fea430a. Read the comment docs.

Copy link
Contributor

@ZenGround0 ZenGround0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Aliases: []string{"p"},
},
&cli.BoolFlag{
Name: "proof",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For my info is this proof of replication (was thinking it could also be latest post proof)? Couldn't find the answer easily from looking at api types because api.SectorInfo is only populated with disk reads.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since I'm probably not alone in not knowing the usage field would benefit from explaining this: "print proof of replication for sector", or "print latest proof of spacetime for sector"

}

errFound := errors.New("found")
if err := mas.ForEachDeadline(func(dlIdx uint64, dl miner.Deadline) error {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Future Improvement: what is the current thinking around the lotus miner creating a persistent index from sector id to partition? It seems like this linear traversal is fairly common and potentially expensive. I'm sure big miners have this already but it would be nice to have out of the box with lotus. If we ask around maybe a mining operation would donate their code too.

@magik6k magik6k merged commit 3c2d854 into master Sep 2, 2021
@magik6k magik6k deleted the feat/sectorinfo-partition branch September 2, 2021 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants