-
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] Sector spinning on GetTicket/PreCommit1 causing kvlog to grow huge #6191
Comments
I see something very similar on lotus-miner version 1.9.0-rc2+mainnet+git.16a9baa3b (rc3 actually). |
Do we know why *.log.cbor is growing so fast? The root partition on miner was full twice in the last 24 hours because of *.log.cbor. What's going on? |
One of the possible ways to handle this is: when we notice this log file(the write log for the metadata) is too large, we should compact it or overwrites it. |
I submitted a pr, it may solve this problem. #6635 |
@neondragon Hi Alex. This issue solved, right? |
Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 24 hours. |
This issue was closed because it is missing author input. |
Problem
I had four sectors get into a state where they moved quickly between GetTicket and PreCommit1 in a loop.
This also caused .miner/kvlog to grow at a rate of ~200MB/s to 1.6TB in size, which nearly exhausted all disk space before I caught the problem.
Restarting lotus-miner resulted in 18 minutes of extra downtime at the kvlog compaction step.
Version
lotus-miner version 1.9.0-rc1+mainnet+git.050ce5092.dirty
To reproduce
I am not sure what caused the issue, but it coincided with a problem with a C2 worker resulting in these sectors failing to schedule C2 a number of times, then re-running PC1, and failing C2 again. After I restarted lotus-miner to resolve that issue, the sectors went into this GetTicket/PreCommit1 loop.
Expected
Sectors perform GetTicket once when necessary and then proceed through the pipeline as normal. Kvlog doesn't grow unreasonably large.
Logs
lotus-miner sectors status --log
Truncated sector log -- produced SectorTicket/SectorOldTicket until I remvoed the sector
The text was updated successfully, but these errors were encountered: