-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
P1P1: Must be resolvedP1: Must be resolvedarea/chainArea: ChainArea: Chainkind/bugKind: BugKind: Bugneed/team-inputHint: Needs Team InputHint: Needs Team Input
Description
Checklist
- This is not a security-related bug/issue. If it is, please follow please follow the security policy.
- This is not a question or a support request. If you have any lotus related questions, please ask in the lotus forum.
- This is not a new feature request. If it is, please file a feature request instead.
- This is not an enhancement request. If it is, please file a improvement suggestion instead.
- I have searched on the issue tracker and the lotus forum, and there is no existing related issue or discussion.
- I am running the
Latest release
, or the most recent RC(release canadiate) for the upcoming release or the dev branch(master), or have an issue updating to any of these. - I did not make any code changes to lotus.
Lotus component
- lotus daemon - chain sync
- lotus miner - mining and block production
- lotus miner/worker - sealing
- lotus miner - proving(WindowPoSt)
- lotus miner/market - storage deal
- lotus miner/market - retrieval deal
- lotus miner/market - data transfer
- lotus client
- lotus JSON-RPC API
- lotus message management (mpool)
- Other
Lotus Version
idk
Describe the Bug
Thanks to @ribasushi we have some evidence of compaction erroring on startup because receipts are not added to snapshot. It appears that this happens in messages mode but maybe discard mode (need to examine config below)
This is a bug which we can fix. However this problem resolves itself after ~4 finalities when the receipts are computed. So its probably not the root cause of discard not discarding.
Logging Information
Compaction error logs
2023-02-04T21:14:37.473Z ERROR splitstore splitstore/splitstore_compact.go:536 COMPACTION ERROR: error marking: error walking block (cid: bafy2bzaceczpzccm2faelihcxwtyhc5zjz6xrim22irzur7j5yrs7krd6fohu): error walking message receipts (cid: bafy2bzaced6qwy3qvlykm23olkomk7sqvpj3vqboueewavqz2oaryi5qj3pbq): error scanning linked block (cid: bafy2bzaced6qwy3qvlykm23olkomk7sqvpj3vqboueewavqz2oaryi5qj3pbq): ipld: could not find bafy2bzaced6qwy3qvlykm23olkomk7sqvpj3vqboueewavqz2oaryi5qj3pbq
2023-02-05T00:02:56.098Z ERROR splitstore splitstore/splitstore_compact.go:536 COMPACTION ERROR: error marking: error walking block (cid: bafy2bzacecwes64aagmt5eyerscpbicvshfzfqrribh2sx6mw5za5bd24mx6u): error walking message receipts (cid: bafy2bzaced6qwy3qvlykm23olkomk7sqvpj3vqboueewavqz2oaryi5qj3pbq): error scanning linked block (cid: bafy2bzaced6qwy3qvlykm23olkomk7sqvpj3vqboueewavqz2oaryi5qj3pbq): ipld: could not find bafy2bzaced6qwy3qvlykm23olkomk7sqvpj3vqboueewavqz2oaryi5qj3pbq
2023-02-05T03:36:34.031Z ERROR splitstore splitstore/splitstore_compact.go:536 COMPACTION ERROR: error marking: error walking block (cid: bafy2bzaceczpzccm2faelihcxwtyhc5zjz6xrim22irzur7j5yrs7krd6fohu): error walking message receipts (cid: bafy2bzaced6qwy3qvlykm23olkomk7sqvpj3vqboueewavqz2oaryi5qj3pbq): error scanning linked block (cid: bafy2bzaced6qwy3qvlykm23olkomk7sqvpj3vqboueewavqz2oaryi5qj3pbq): ipld: could not find bafy2bzaced6qwy3qvlykm23olkomk7sqvpj3vqboueewavqz2oaryi5qj3pbq
2023-02-05T08:21:33.125Z ERROR splitstore splitstore/splitstore_compact.go:536 COMPACTION ERROR: error marking: error walking block (cid: bafy2bzaceb73otita5kkb33tc7afwbhkqjf34b7criguoxjlmc5xguufjz2be): error walking message receipts (cid: bafy2bzaced6qwy3qvlykm23olkomk7sqvpj3vqboueewavqz2oaryi5qj3pbq): error scanning linked block (cid: bafy2bzaced6qwy3qvlykm23olkomk7sqvpj3vqboueewavqz2oaryi5qj3pbq): ipld: could not find bafy2bzaced6qwy3qvlykm23olkomk7sqvpj3vqboueewavqz2oaryi5qj3pbq
2023-02-05T14:09:33.845Z ERROR splitstore splitstore/splitstore_compact.go:536 COMPACTION ERROR: error marking: error walking block (cid: bafy2bzacecwes64aagmt5eyerscpbicvshfzfqrribh2sx6mw5za5bd24mx6u): error walking message receipts (cid: bafy2bzaced6qwy3qvlykm23olkomk7sqvpj3vqboueewavqz2oaryi5qj3pbq): error scanning linked block (cid: bafy2bzaced6qwy3qvlykm23olkomk7sqvpj3vqboueewavqz2oaryi5qj3pbq): ipld: could not find bafy2bzaced6qwy3qvlykm23olkomk7sqvpj3vqboueewavqz2oaryi5qj3pbq
2023-02-05T21:33:47.433Z ERROR splitstore splitstore/splitstore_compact.go:536 COMPACTION ERROR: error marking: error walking block (cid: bafy2bzaceb73otita5kkb33tc7afwbhkqjf34b7criguoxjlmc5xguufjz2be): error walking message receipts (cid: bafy2bzaced6qwy3qvlykm23olkomk7sqvpj3vqboueewavqz2oaryi5qj3pbq): error scanning linked block (cid: bafy2bzaced6qwy3qvlykm23olkomk7sqvpj3vqboueewavqz2oaryi5qj3pbq): ipld: could not find bafy2bzaced6qwy3qvlykm23olkomk7sqvpj3vqboueewavqz2oaryi5qj3pbq
node configured:
LOTUS_CHAIN_BADGERSTORE_DISABLE_FSYNC=1 \
LOTUS_CHAINSTORE_ENABLESPLITSTORE=1 \
LOTUS_CHAINSTORE_SPLITSTORE_COLDSTORETYPE=discard \
LOTUS_CHAINSTORE_SPLITSTORE_MARKSETTYPE=badger \
LOTUS_CHAINSTORE_SPLITSTORE_HOTSTOREFULLGCFREQUENCY=1 \
LOTUS_CHAINSTORE_SPLITSTORE_COLDSTOREFULLGCFREQUENCY=0 \
### Repo Steps
Start splitstore with the above config and look at logs for 2 days
Metadata
Metadata
Assignees
Labels
P1P1: Must be resolvedP1: Must be resolvedarea/chainArea: ChainArea: Chainkind/bugKind: BugKind: Bugneed/team-inputHint: Needs Team InputHint: Needs Team Input
Type
Projects
Status
👊 Needs Commitment